oneshotlm
Compare all models on this prompt →

Mario-style platformer · mistral-medium-3.1

Output generated Cost / run $0.0091 Runtime 38.3s

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

modelmistral-medium-3.1
vendorMistral AI
harnesspi-agent
generated2026-08-01

METRICS

runtime38.3s
tokens in7.0k
tokens out4.3k
cached6.1k
cost / run$0.0091
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
→ write index.html (13235 bytes)
toolResult

Successfully wrote 13235 bytes to index.html

assistant

I've created a complete side-scrolling platformer game in a single `index.html` file using Phaser. Here's what the game includes: 1. **Procedural Graphics**: - Player character with simple face - Platforms and ground - Coins that sparkle - Enemies with simple faces - Goal flag at the end 2. **Gameplay Mechanics**: - Run left/right with arrow keys - Jump with up arrow - Stomp enemies by jumping on them - Collect coins for points - Reach the flag to win 3. **Game Features**: - Scrolling camera that follows the player - Coin counter display - Win screen with final score - Restart button 4. **Physics**: - Gravity and jumping - Collision detection - Enemy movement patterns The game is completely self-contained with no external dependencies (other than the provided phaser.min.js). All graphics are procedurally generated using Phaser's drawing capabilities. You can open the `index.html` file in any modern browser to play the game. Use the arrow keys to move and jump. Try to collect all the coins and reach the flag at the end!