A simple 2d game engine in C++