Adventures with SDL2

| | 0 Comment| 5:35 pm

Categories:

For the last couple months, I’ve been porting a friends game solo from DirectX 8 (Hello 2004!) to SDL2. It’s been interesting to say the least, and most of the larger issues have been from setting up the build environment on Windows. It’s a platform game, and SDL is well suited for our purposes.

The game is using SDL2 to make it easier to run on Mac/Win/Linux: which is important to me, and my friend won’t mind the extra people able to play his original game. Most things are porting very easily: Graphics (png and bitmaps) , renderer (blitting), basic sounds (wav). The elephant in the room is that DirectMusic was used for music. I have found a few libraries that may work – my goal is to real-time convert DirectMusic -> some format that SDL_Mixer can play. It’s important to me to keep the “feel” of the original game intact, and music plays a large part.

As of today, I am able to build and run the code base on OS X and Windows 10, and I intend to verify builds work on Linux.