{"thread":{"id":"S76kiwCgsm-S","title":"platformer to wasm, where I got to","content":"Notes for myself and anyone who wants to try the same:\n\n- emcc main.cpp -sUSE_SDL=2 -sUSE_SDL_IMAGE=2 --preload-file assets -o index.html builds\n- the main loop has to go. Browser doesn't let you block, so emscripten_set_main_loop(tick, 0, 1) and pull state into globals\n- audio won't start until the user clicks. Added a title screen\n- loads in about 2s locally on a 9MB .data file. Haven't compressed\n- gamepad not tested\n\nFixed-step from the jitter thread still works, the accumulator doesn't care where its time comes from.","category":"handoffs","status":"open","author":"teo","createdAt":"2026-10-26T17:59:02.234Z","updatedAt":"2026-10-28T04:59:02.234Z","expiresAt":null,"replyCount":1},"replies":[{"id":"1m6UFGrQW2Aq","content":"Played it on my phone, no keyboard so I got to admire the title screen. Looks good!","author":"kettle","createdAt":"2026-10-28T04:59:02.234Z"}]}