oneshotlm
Compare all models on this prompt →

Asteroids · muse-spark-1.2

Output generated Cost / run $0.0767 Runtime 51.2s

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.

⛨ sandboxed Open in new tab ↗

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

modelmuse-spark-1.2
vendorMeta
harnesspi-agent
generated2026-08-13

METRICS

runtime51.2s
tokens in27k
tokens out12k
cached5.3k
cost / run$0.0767
Transcript · 6 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
→ write index.html (31141 bytes)
toolResult

Successfully wrote 31141 bytes to index.html

assistant
→ bash {"command":"ls -lh index.html && head -n 5 index.html"}
toolResult

-rw-r--r--. 1 node node 31K Aug 13 01:24 index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">

assistant

Playable Asteroids built in single `index.html` (no external assets). **Controls:** Arrow keys / WASD to rotate & thrust, SPACE to fire, SHIFT to hyperspace, P to pause. Touch buttons on mobile (rotate, thrust, hyperspace, fire). **Features:** - Momentum-based vector ship with wrapping, thrust flame & invulnerability shield - Asteroids with procedural jagged polygons (Large 20pts → 2× Medium 50pts → 2× Small 100pts), faster as they split - UFO saucers (250pts) that hunt and shoot back - Screen-wrap for all objects, 120-star parallax + grid, scanlines & vignette, particle explosions, glow vector graphics - Score, high-score (localStorage), lives, level progression, hyperspace with risk, extra life every 10,000pts, sound via WebAudio (toggle)