oneshotlm
Compare all models on this prompt →

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.

⛨ sandboxed Open in new tab ↗

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

modelgranite-4.1-8b
vendorIBM · Granite
harnesspi-agent
generated2026-08-01

METRICS

runtime15.0s
tokens in5.0k
tokens out1.7k
cached1.6k
cost / run$0.0004
Transcript · 4 messages
user

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.

assistant
→ write index.html (4708 bytes)
toolResult

Successfully wrote 4708 bytes to index.html

assistant

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!