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.
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
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.
index.html (6960 bytes)Successfully wrote 6960 bytes to index.html
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!