I have important news!

When you try to look for ways to statically link SDL3 using GCC, all of the search results point to the cmake example here:
https://wiki.libsdl.org/SDL3/README-cmake

Say good bye to the bloated build files because you don't have to use cmake at all!

Instead you can just run:
gcc <Source File> --static `pkg-config --cflags --libs SDL3 --static` -o <Output File>

#programming #sdl3 #devlog #solodev

SDL3/README-cmake

The Simple Directmedia Layer Wiki

very slowly and deliberately adding messaging and signals to objects using SDL's event queue. Basically tiles can send custom events with their unique id and a pointer to their animation class that gets caught by an event loop in the tilemap, which adds and removes them from a table. I just have to iterate that table and update all animations at once. Should be fine.

For some reason the tilemap is rendering random tiles though.

Should be fine.

#gamedev #luajit #sdl3

Does anyone know how to change the curser with SDL_SetCursor(pCursor); on a DROP_BEGIN event? It seems that SDL cannot override whatever the OS is setting the cursor to? Some event I have to catch or Push() so that the cursor changes during the drag?
#SDL3

Long shot, but is there anyone here who has used SDL3 and Emscripten or is familiar with building Emscripten from source?

I had to get SDL3_TTF from a PR, and managed to build it with embuilder but so far when I try to build with -sUSE_SDL_TTF=3 it doesn't seem to acknowledge the option and if just complaining that it can't find SDL3/SDL_ttf.h

What am I missing?

(also if you don't know, sharing is caring)

#sdl #sdl3 #emscripten #c #gamedev #programming

Looks like SDL_mixer is finally close to getting a first release for SDL3 👀
#SDL #SDL3

So, for my vala game framework "Veggies" I have made a bit more complex sample game.

This is "Shape Blaster" a very old 2013 demo from 'EnvatoTuts+' that was original med in XNA. So I converted it to my framework to test. Its not a full conversion, but good enough.

I think this proves that a rather decent tiny game with extra oomph can be done in this framework 😀.

Check out Veggies if you are curious:
https://codeberg.org/edwood-grant/veggies

#Vala #gamedev #engine #framework #indiedev #indiegame #SDL3 #sdl

I posted a 0.286 Apple Silicon build using sdl3 to my website. No intel build yet, and not pushed to shithub either. Consider it untested for now. After I can verify all is well, I’ll update the rest of the things later. https://sdlmame.lngn.net #macos #emulation #mame #sdl3
MAME for MacOS Downloads

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)

Of course, today is Wednesday, not just any Wednesday but the last Wednesday of the month. It’s #mame release day! And this month moving to use #sdl3 on the Mac builds. I should probably test things out before actually pushing things… but who has time for testing? Not me. lol