2d tile and sprite based game engine written in C