Mario-style platformer · kat-coder-pro-v2
Output generated Cost / run $0.0133 Runtime 77.1s
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 · 6 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.
I'll create a classic Mario-style platformer using Phaser with procedural graphics. Let me build this step by step.
/workspace/index.html (29354 bytes)Successfully wrote 29354 bytes to /workspace/index.html
{"command":"ls -la /workspace/index.html"}-rw-r--r-- 1 node node 29358 Jul 31 08:51 /workspace/index.html
Perfect! I've created a complete side-scrolling platformer game in a single HTML file. Here's what's included: ## 🎮 Game Features: **Player Controls:** - Arrow keys (← →) to move - SPACE or W to jump (double jump enabled!) - R to restart **Game Elements:** - **Procedural graphics** - everything is drawn with code, no external assets - **Mario-style character** with red hat and outfit - **Multiple platform types**: ground, floating brick platforms, question blocks - **Goomba-like enemies** that patrol back and forth - **Gold coins** to collect (10 points each) - **Goal flag** to reach and complete the level - **Lives system** (3 lives) with invincibility after taking damage - **Score tracking** (100 points for stomping enemies) **Visual Effects:** - Parallax scrolling background (clouds, mountains, hills) - Particle effects for jumping, coin collection, and enemy stomps - Camera shake on damage - Animated coin rotation - Invincibility blinking effect **Audio:** - Procedurally generated sound effects (jump, coin, stomp, death, win) - Simple background melody loop - All sounds created with Web Audio API **Level System:** - Procedurally generated levels that get progressively harder - More platforms, enemies, and coins as you advance The game runs entirely in the browser with no external dependencies beyond Phaser. Just open `index.html` in a browser and start playing!