Dangerous Dave platformer · grok-4.6
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.
transcript · 6 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.
thinking
The user wants me to build a complete single-page web app - a tile-based platformer in the Dangerous Dave style. Let me plan this out thoroughly.
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>DANGEROUS DAVE</title>
<style>
body{margin:0;background:#000;display:flex;justify-content:center;align-items:center;height:100vh;font-family:monospace}
canvas{border:4 px solid #222;background:#0a0a2a}
#ui{position:absolute;top:12px;left:12px;color:#ff0;font-size:18px;text-shadow:2px 2px #000}
</style>
</head>
<body>
<canvas id="c" width="800" height="480"></canvas>
<div id="ui">SCORE <span id="score">000000</span> LIVES <span id="lives">♥♥♥</span></div>
<script>
// =============== DANGEROUS DAVE – single file ===============
const canvas = document.Building a self-contained Dangerous Dave–style platformer with procedural graphics, tile physics, hazards, and a trophy-then-exit objective.
/tmp/ws/index.html (29511 bytes)Successfully wrote 29511 bytes to /tmp/ws/index.html
thinking
The file was written. Let me verify it exists and is complete. The user asked for a single self-contained index.html with a playable tile-based platformer. I've created that. Let me do a quick sanity ...
{"command":"ls -la /tmp/ws/index.html && wc -l /tmp/ws/index.html"}-rw-r--r--. 1 node node 29526 Aug 13 01:32 /tmp/ws/index.html 986 /tmp/ws/index.html
thinking
The game is written. Let me give a brief summary of what was built.
`index.html` is a self-contained Dangerous Dave–style platformer (canvas only, no external assets). **Goal:** grab the golden trophy, then reach the exit door. Gems are optional score. **Controls:** A/D or arrows to move, W/Space to jump, Enter to start, R to restart the room. **Play:** 3 caverns, 3 lives. Fire, water, and spikes kill instantly. Red walkers patrol ledges. Door stays locked until you have the trophy. Jump uses coyote time and a short buffer so it feels fair. Graphics and sound are all procedural (bricks, flames, water, spikes, trophy, door, Dave, enemies, particles, plus tiny Web Audio beeps).
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
EVALUATION
Menu leads to a tile-based platformer level with fire, water, spikes, enemy, and gems; keyboard input starts and moves the game.
Vision grade · anthropic/claude-sonnet-5
MEASUREMENTS
Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.