On YouTube you can find the details of how to modify, edit and play around with the code for KoG2 in C# which uses SDL2 as its graphical and audio library.
Full details of the code and engine are described in this playlist on YouTube.
I hope you find it useful and enjoyable to play around with.