Compare all models on this prompt →
Dangerous Dave platformer · deepseek-chat-v3.1
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 · 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
thinking
We are building a single-page web app with all code in index.html We'll create a Dangerous Dave style platformer with: - Canvas for rendering - Player character that can move and jump - Enemies - Hazards (fire, water) - Trophy to collect and exit to reach - Procedural graphics (no external assets) The game will have: - A level built with tiles - Collision detection - Gravity and jumping physics - Simple enemy AI We'll structure the HTML file with: - A canvas element - Style for the canvas and body - JavaScript for game logic Steps: 1. Set up the HTML structure 2. Style the page to center the canvas 3. Write the game code in a script tag Game code will include: - Constants for tile types, player properties, etc. - Level data (we can hardcode a simple level) - Game loop - Input handling - Rendering functions - Collision detection - Player movement and physics - Enemy movement Let's create the index.html file.
→ write
index.html (18255 bytes)toolResult
Successfully wrote 18255 bytes to index.html
assistant
thinking
I've created a complete Dangerous Dave-style platformer game in a single HTML file. The game features: **Gameplay:** - Navigate through a tile-based level to collect a trophy and reach the exit - Avoid hazards like fire and water tiles - Jump over gaps and climb ladders - Avoid simple enemies that patrol platforms - Collect the trophy first, then reach the exit to complete the level **Controls:** - Arrow keys or WASD for movement - Space/Up/W to jump - Climb ladders by moving up/down while on them **Features:** - Procedurally generated graphics (no external assets) - Collision detection with platforms and hazards - Enemy AI that patrols and turns around at edges - Lives system (3 lives) - Scoring system - Game over and level complete states **Visual Elements:** - Red player character with directional facing - Purple enemies with simple AI - Brown platforms and ladders - Animated fire and water hazards - Gold trophy that appears above player when collected - Green exit door with handle - Clean UI showing score and lives The game is fully self-contained with all CSS and JavaScript embedded in the HTML file, ready to run in any modern browser without external dependencies.
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
modeldeepseek-chat-v3.1
vendorDeepSeek
harnesspi-agent
generated2026-08-02
METRICS
runtime505.9s
tokens in8.2k
tokens out5.7k
cached1.4k
cost / run$0.0061