oneshotlm
Compare all models on this prompt →

Asteroids · mimo-v2.5

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.

⛨ sandboxed Open in new tab ↗
transcript · 4 messages
user

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.

assistant
thinking
The user wants me to build a classic Asteroids arcade game as a single-page web app. Let me create a comprehensive implementation with all the requested features:

1. Vector ship that rotates and thrusts
2. Shooting3. Screen wrapping for ship and asteroids
4. Asteroids that split into smaller pieces when hit
5. Score and lives display
6. All procedural vector graphics

Let me write this as a single HTML file with inline CSS and JS.
write /workspace/index.html (11674 bytes)
toolResult

Successfully wrote 11674 bytes to /workspace/index.html

assistant
thinking
The game has been created. Let me verify it exists and is complete.

The Asteroids game is ready at `/workspace/index.html`. Here's what's included: **Gameplay Features:** - **Vector ship** — rotates with Arrow Left/Right (or A/D), thrusts with Arrow Up (or W) - **Shooting** — Space or J to fire (max 8 bullets on screen, cooldown between shots) - **Screen wrapping** — ship, bullets, and asteroids wrap around all edges - **Asteroid splitting** — large (45px) → medium (25px) → small (14px), with increasing speed - **Score system** — 20 pts for large, 50 for medium, 100 for small - **3 lives** — ship respawns with brief invincibility (blinking effect) - **Levels** — each cleared wave spawns more asteroids **Visual Effects:** - Procedural jagged asteroid shapes (randomized vertices) - Rotating asteroids with per-shape rotation - Thrust flame with flicker on the ship - Particle explosions on destruction (dots + line debris) - HUD with score, level, and mini ship icons for lives **Controls:** | Action | Keys | |--------|------| | Rotate | ← → or A/D | | Thrust | ↑ or W | | Shoot | Space or J | | Start/Restart | Space or Enter |

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

modelmimo-v2.5
vendorXiaomi · MiMo
harnesspi-agent
generated2026-07-10

EVALUATION

3/5 working

Asteroids game starts via Space, shows ship, asteroids, score/level/lives HUD; vector graphics only, responds to keyboard input.

Vision grade · anthropic/claude-sonnet-5

MEASUREMENTS

Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.

idle motion1.9%
on click1.8%
on drag1.6%
on wheel1.5%
on enter + space3.8%
on arrow keys1.6%
on w/a/s/d2.0%
frame spread11 / 255
console errors0
js errors none

METRICS

runtime41.1s
tokens in4.7k
tokens out4.3k
cached2.7k
cost / run$0.0019