Login
You're viewing the assemblag.es public feed.
  • Feb 25, 2026, 5:49 PM

    Here's a cool ting I managed to do for #gamedev in #vala with #sdl3

    Here's a screenshot of a simple SDL3 hello world. I know it doesn't look like much but the cool thing is that I managed to this from Vala, emitting C code, and then compiling with emcc.

    Now, there are caveats:

    1. Used "profile=libc" so it strips glib.h from the code.
    2. Used -DSDL_MAIN_USE_CALLBACKS when compiling, the SDL3 callback structure. This allows me to avoid empcripten binding (you could create one tho)

    This is a very simple main function using the callback structure for SDL3.  Just a black screen printing some messages and keeping a counter for a context app state.

The cool thing is that I made this from Vala, which is nice! It has some caveats but its pretty cool that it can be done. There is a "HELLO FROM SDL3 AND VALA" message form the browser console on the right.
    💬 0🔄 0⭐ 2