Cross-platform game engine