oneshotlm
Compare all models on this prompt →

Mario-style platformer · gpt-4.1-mini

Output generated Cost / run $0.0054 Runtime 32.8s

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

modelgpt-4.1-mini
vendorOpenAI
harnesspi-agent
generated2026-08-01

METRICS

runtime32.8s
tokens in4.7k
tokens out2.4k
cached1.2k
cost / run$0.0054
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 (6960 bytes)
toolResult

Successfully wrote 6960 bytes to index.html

assistant

I created a single-page Phaser 3 web app in index.html with a classic Mario-style side-scrolling platformer. The game features procedurally generated platforms, a blue square player with eyes, red circular enemies, yellow circular coins, and a red flag goal — all drawn with Phaser graphics. You can run, jump, stomp enemies, collect coins, and reach the flag to win. The camera follows the player horizontally. No external resources are used. Open index.html in a browser to play. Let me know if you'd like me to add features or explain the code!