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.
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
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.
index.html (31141 bytes)Successfully wrote 31141 bytes to index.html
{"command":"ls -lh index.html && head -n 5 index.html"}-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">
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)