Asteroids · grok-4.6
Output generated Cost / run $0.0564 Runtime 65.1s
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 as a single self-contained HTML file. Let me create a polished, playable version with:
I'll build a self-contained Asteroids game with vector graphics, wrapping, splitting rocks, score, and lives.
/tmp/ws/index.html (17415 bytes)Successfully wrote 17415 bytes to /tmp/ws/index.html
thinking
The file was written successfully. The user asked for a playable Asteroids game in a single self-contained index.html. I've created that. Let me give a brief summary of what was built.
`index.html` is a self-contained Asteroids game — vector-only, no network or external assets. **Play:** rotate with ←/→ (or A/D), thrust with ↑ (or W), fire with Space, hyperspace with H. Screen wrap on ship, bullets, and rocks. **Rules:** large rocks split twice (100 / 50 / 20 pts). You start with 3 lives and a short invulnerability window after spawn. A saucer shows up between waves (200 / 1000 pts). Score and remaining ships sit in the HUD. Enter starts or restarts.