Cross-platform 2D game engine