I was wondering how easy it is port port an SDL application to web.
As it turns out not that hard ,install couple of tool chains, debug it and it works.
There is a gimmick I encountered , in order for this to work.
I had to upload the main.htlm , main.js and main.wasm inside the assets folder of my current theme folder. Least painful solution for now.
I slightly modified the snake demo at (https://github.com/libsdl-org/SDL/tree/main/examples/demo/01-snake)
to add wasd key support ,plus it tracks also the score now.
It cool having an interactive programs on your page.
Press on the game to play , WASD OR ARROWS KEYS
-MK