2D game engine written in C