2d game engine by c language