Cross-platform game engine for mobile platforms