oneshotlm
Compare all models on this prompt →

Dangerous Dave platformer · kat-coder-air-v2.5

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 ↗
transcript · 8 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 /tmp/ws/index.html (27767 bytes)
toolResult

Successfully wrote 27767 bytes to /tmp/ws/index.html

assistant

I'll build a complete Dangerous Dave-style platformer with multiple levels, enemies, hazards, and collectibles.

→ write /tmp/ws/index.html (25813 bytes)
toolResult

Successfully wrote 25813 bytes to /tmp/ws/index.html

assistant

→ bash {"command":"ls -la /tmp/ws/index.html && head -5 /tmp/ws/index.html && echo \"---\" && tail -5 /tmp/ws/index.html"}
toolResult

-rw-r--r--. 1 node node 25815 Aug 1 20:34 /tmp/ws/index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> --- gameLoop(); </script> </body> </html>

assistant

The file is complete. Here's what's in the single `index.html`: **Gameplay:** - 3 progressively harder levels in Dangerous Dave style - Collect the golden trophy, then reach the exit door - Jump on enemies from above to defeat them (+200 pts) - Touching enemies or hazards (fire, water, spikes) costs a life **Controls:** - Arrow Keys or WASD to move - Up / W / Space to jump **Features:** - Procedural pixel-art graphics — bricks, grass, animated water, flickering fire with sparks, glowing trophy, spiked hazards, animated enemies with eyes that follow direction - Starfield background, HUD with score/lives/trophy status - Invincibility frames after hitting hazards (blinking) - Death screen, level complete screen, game win screen with fireworks - Lives system (3 lives) and score tracking **Level progression:** - Level 1: Gentle intro with a few platforms and one enemy - Level 2: Water pit, fire traps, two enemies - Level 3: Spikes, multiple water pits, fire, four enemies, trophy high up

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

modelkat-coder-air-v2.5
vendorKwaipilot
harnesspi-agent
generated2026-08-01

METRICS

runtime125.3s
tokens in67k
tokens out25k
cached43k
cost / run$0.0197