I don't know if anybody would be interested or not, but I've forked vayerx's Shadowgrounds repo
and spent most of the last two days working on doing a basic straight SDL2 port (which means there are several bugs right now, the Readme hasn't been updated yet with what has to be done to get it to compile at the moment, and currently only Shadowgrounds compiles). Here's my repo
(the commits are messy, but I plan on writing better ones as I fix stuff).
Now, mind you, I am amateur at C++ and am predominately a Java programmer (and still a novice at that - 2 to 3 years personal study with a couple semesters college credit in the basics). I can read code fairly well, though, and can figure out where things need to go.
From what I can tell from the SDL2 migration documentation
, there are several things that could probably be rewritten altogether (or at least most of the way):
InputHandling - SDL2 uses scancodes which seem to be region free meaning that the current implementation, which uses unicode, is fairly obsolete and unnecessary.
SoundHandling - is openal really necessary? Could the new SDL2_mixer be used instead? (Maybe there's a major reason for openal, but it seems like the SDL_mixer could probably work just as well without having to have the extra dependency. Just my thoughts on the matter).
Rendering - currently it uses a custom renderer. Could this be updated to use the new rendering system instead?
There's probably other things that need to be worked on, but these seem to be good starting points.
Would anybody be interested in helping? My main goal is to get the game fully running on SDL2 and then try to port it to other crazy things.
What do you all think about this? Feel free to leave your comments and recommendations below.