It’s Friday, so time to fool around some! Tonight I wanted to connect some dots and see if building a small game is feasible using txiki.js, my tiny JavaScript engine, and SDL3.
First we need some prep, how are we going to use SDL3 from txiki.js? This past week I’ve been taking a look at the ffi bindings in txiki.js and made some performance improvements, with the hope that something like this would be possible.
I then found SDL2 ffi bindings for Deno, courtesy of littledivy. With some help from Claude Code, I ported those to txiki.js and adapted them to SDL3, you can find the repo here.
With all the ducks in a row, some cool demos could be built!

Here is a small shooting game with audio and everything.

I am blown away. Building a small game is something I have wanted to do forever, and now that I see it’s possible to do with the tools that I build, I plan on trying to build one from scratch. My first thought is to recreate an old frogger style, and the first game I ever remember playing as a kid: Horace Goes Skying.