Dangerous Dave platformer · qwen3-coder
Output generated Cost / run $0.0057 Runtime 153.2s
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.
I'll create a playable tile-based platformer in the style of Dangerous Dave. Here's a complete implementation with all the requested features:
index.html (19214 bytes)Successfully wrote 19214 bytes to index.html
I've created a complete Dangerous Dave-style platformer game in a single HTML file. Here's what the game includes: **Game Features:** - Tile-based platformer with procedural graphics (no external assets) - Player character that can run and jump - Collectible trophy that must be grabbed before exiting - Hazard tiles (fire and water) that cause player damage - Simple enemies that move back and forth - Lives system (3 lives) - Score tracking - Level completion with victory screen - Game over screen when all lives are lost **Controls:** - Arrow Keys or WASD to move left/right - Spacebar or Up Arrow to jump - Start Game and Reset Level buttons **Game Elements:** - Brown platforms (ground and floating platforms) - Orange fire hazards (deadly to touch) - Blue water hazards (deadly to touch) - Gold trophy to collect - Green exit door (only accessible after collecting trophy) - Brown enemies that can be jumped on to defeat **How to Play:** 1. Collect the gold trophy 2. Reach the green exit door 3. Avoid fire, water, and enemies 4. Jump on enemies to defeat them 5. Don't fall off the screen The game is completely self-contained in a single HTML file with no external dependencies. All graphics are procedurally generated using canvas drawing commands. The game features collision detection, physics (gravity and jumping), and a complete game state system. To play, simply open the index.html file in any modern browser!