Cross-platform 3d game engine