2d game engine written in C