A multipurpose 2D game engine