oneshotlm
Compare all models on this prompt →

Mario-style platformer · qwen3-coder

Output generated Cost / run $0.0046 Runtime 124.4s

Prompt for this run

Using the pre-provided phaser.min.js (global Phaser), build a playable side-scrolling platformer in the classic Mario style: run and jump across scrolling platforms, stomp enemies, collect coins, and reach a goal flag. Use ONLY procedurally generated graphics, no external image or audio 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

modelqwen3-coder
vendorQwen
harnesspi-agent
generated2026-08-01

METRICS

runtime124.4s
tokens in7.0k
tokens out3.7k
cached5.8k
cost / run$0.0046
Transcript · 4 messages
user

Using the pre-provided phaser.min.js (global Phaser), build a playable side-scrolling platformer in the classic Mario style: run and jump across scrolling platforms, stomp enemies, collect coins, and reach a goal flag. Use ONLY procedurally generated graphics, no external image or audio assets.

assistant

I'll create a playable side-scrolling platformer using Phaser with procedural graphics. Let me build this in a single self-contained HTML file.

→ write index.html (14641 bytes)
toolResult

Successfully wrote 14641 bytes to index.html

assistant

I've created a complete playable side-scrolling platformer in a single HTML file using Phaser. The game features: 1. **Procedurally Generated Graphics** - All assets (player, enemies, coins, platforms, goal) are created with canvas drawing 2. **Classic Platformer Gameplay**: - Run and jump with arrow keys and spacebar - Collect coins for points - Stomp enemies to defeat them - Reach the goal flag to win 3. **Procedural Level Generation** - Platforms, coins, and enemies are generated as you play 4. **Game Mechanics**: - Lives system (start with 3 lives) - Score tracking - Win/lose conditions **How to Play**: - Arrow keys to move left/right - Spacebar to jump - Stomp on enemies to defeat them - Collect all coins and reach the flag to win The game is completely self-contained with no external dependencies beyond the provided phaser.min.js file. All graphics are generated programmatically using HTML5 Canvas. Would you like me to explain any specific part of the implementation in more detail?