SDL2 and Emscripten with input
Tonight, I briefly went through Lazyfoo’s tutorials (04, 05, 07) and came up with a version that compiles nicely with Emscripten. Yay!
If you see an interactive screen above this sentence (only works with keyboard for now), that means the WASM file and its image data were loaded correctly.
The assets are actually 5mb of bitmap images, but if I have configured my server correctly, it should be gzipped automatically and reduced down to 35kb. Crazy, right?