Mario-style platformer · gpt-4o-mini-2024-07-18
Output generated Cost / run $0.0010 Runtime 14.6s
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 (3879 bytes)Successfully wrote 3879 bytes to index.html
The single-page web app for a playable side-scrolling platformer has been created. You can find the complete code in the `index.html` file. Here's a summary of what it includes: - **Phaser library** for game functionality. - **Procedurally generated platforms** and coins using canvas graphics. - Basic player controls to move and jump. - Score system for collecting coins. The `index.html` file is ready for you to run. Enjoy playing!