melonjs/melonJS — reverse-engineered prompt
Reverse engineered prompt
Build me a modern, lightweight HTML5 game engine for indie style browser games. I want it to feel easy like the normal canvas API, but with the stuff people actually need already built in, like scenes, sprites and animations, tilemaps, cameras, input, audio, particles, UI elements, and solid collision and physics support.
It should run fast with WebGL when available and automatically fall back to canvas if not. Make it work well for 2D games, plus some simple 2.5D and 3D style features like perspective cameras, mesh or scene loading, lights, and post processing effects. It should play nicely with maps made in Tiled and be usable from plain modern JavaScript or TypeScript without forcing a heavy setup.
Please keep it modular and small so people only load what they use. Include a few sample scenes or demos that show movement, map loading, collisions, camera behavior, UI, and effects. Look up current browser and Tiled docs online if you need to.
Want more depth? Deep Reverse