Dangerous Dave platformer · granite-4.1-8b
Output generated Cost / run $0.0004 Runtime 15.0s
Prompt for this run
Build a playable tile-based platformer on a canvas in the Dangerous Dave style: navigate a level to grab a trophy and then reach the exit, avoiding hazards like fire and water, with jumping and simple enemies. Procedural graphics only, no external assets.
TAKE IT TO CODE
A single self-contained HTML file — copy it and open in any browser, or reuse the prompt with your own pi-agent run.
RUN
METRICS
Transcript · 4 messages
Build a playable tile-based platformer on a canvas in the Dangerous Dave style: navigate a level to grab a trophy and then reach the exit, avoiding hazards like fire and water, with jumping and simple enemies. Procedural graphics only, no external assets.
index.html (4708 bytes)Successfully wrote 4708 bytes to index.html
The self‑contained **index.html** file has been created in the current directory. It contains: * **Procedural level generation** – a 20 × 40 grid where floors, walls, hazards (fire, water), an enemy, a trophy, and an exit appear randomly. * **Procedural tile graphics** – simple shapes are drawn directly with JavaScript on a `<canvas>` (no external images). * **Player controls** – arrow keys / A/D to move, Space to jump. * **Gameplay loop** – gravity, collision detection with walls/fire/water/enemy, and conditions for capturing the trophy and winning the level. You can open **index.html** in any modern browser to play the tile‑based platformer in a Dangerous‑Dave‑style experience, built entirely without external assets. Enjoy!