Asteroids · mimo-v2.5-pro
Output generated Cost / run $0.0093 Runtime 116.5s
Prompt for this run
Build a playable Asteroids game on a canvas: a thrust-and-rotate vector ship that shoots and wraps around the screen edges, splitting asteroids into smaller pieces, with score and lives. Procedural vector graphics only, no external 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
Build a playable Asteroids game on a canvas: a thrust-and-rotate vector ship that shoots and wraps around the screen edges, splitting asteroids into smaller pieces, with score and lives. Procedural vector graphics only, no external assets.
thinking
The user wants me to build a complete Asteroids game in a single HTML file with inline CSS and JS. This is a classic arcade game that needs: 1. A ship that can rotate, thrust, and shoot 2. Asteroids that float around and split when hit 3. Screen wrapping for both ship and asteroids 4. Score tracking and lives 5. All procedural vector graphics on canvas 6. No external resources Let me create a comprehensive, polished implementation.
/workspace/index.html (19293 bytes)Successfully wrote 19293 bytes to /workspace/index.html
thinking
The file has been written. Let me verify it's there.
Done! `index.html` is ready at `/workspace/index.html`. Here's what's packed inside: **Gameplay** - **Ship** — vector-drawn with thrust flame animation - **Rotate** (← / → / A / D), **Thrust** (↑ / W), **Fire** (Space), **Hyperspace** (Shift — random teleport, small chance of death) - Edge wrapping for ship, bullets, and asteroids - 3 asteroid sizes that split: large → 2 medium → 2 small each, with point values (20 / 50 / 100) - 3 lives, invincibility flash on respawn, level progression with increasing asteroid count **Visuals** - Procedural vector graphics only — no external assets or network requests - Glowing neon ship, bullets, and asteroids - Starfield with twinkling stars - Particle explosions (debris lines + sparks) on asteroid/ship destruction - Blinking invincibility indicator during shield **HUD** - Padded score display, persistent high score (localStorage), level counter, and ship-shaped life icons - Controls hint overlay during early gameplay