Asteroids · grok-4.6
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.
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.
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
EVALUATION
Asteroids game starts on Enter/keyboard input, shows ship, asteroids, lives; mouse inputs do nothing since it's keyboard-only.
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.