2d tile based game engine written in C