~/talk

Sandbox Games - Using WebAssembly and C++ to Make a Simple Game

Talkat ACCU 2022 · 2022-04-06..04-09· [webassembly, creative-coding]
slides:none on file

Builds a browser sliding-puzzle and a Wordle bot by compiling C++ to WebAssembly with Emscripten + C++, exposing functions via the module import object and calling them from JS. Shows concrete hurdles: needing a local web server, implementing missing syscalls like random, preloading asset files, and setting memory initial/maximum + memory growth. Demonstrates debugging with source maps and breakpoints, profiling in Chrome, and that the wasm version runs but still faces JS timing and canvas integration issues.

AI-written summary · about

  1. 0:00Sandbox games with WebAssembly
  2. 1:08What this talk covers and doesn't
  3. 2:11WebAssembly basics
  4. 6:22Setting up Emscripten for development
  5. 10:13Hello World in WASM
  6. 14:26Sliding puzzle game
  7. 16:32Moving logic to C++
  8. 20:01Handling OS functions
  9. 27:44Communicating game state between C++ and JavaScript
  10. 31:14Full C++ port
  11. 35:02Debugging with DevTools
  12. 36:28Performance profiling
  13. 40:03SDL2 integration
  14. 41:47WASM memory limits
  15. 43:32Loading external files
  16. 45:17Emscripten and CMake
  17. 50:31JS output analysis
  18. 54:06Connecting WebGL and WebAssembly
  19. 56:34Challenges and solutions
  20. 57:19Live Wordle demo
  21. 1:00:14Performance comparison of JavaScript vs WebAssembly
  22. 1:04:36Wordle WASM project
  23. 1:05:31Debugging techniques for WebAssembly
  24. 1:07:48WASM threading future
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.