A 2D game engine prototype