Space Invaders · seed-2-1-turbo
Build a playable Space Invaders game on a canvas: a player cannon that moves and shoots, a descending grid of aliens that advance and fire back, destructible bunkers, score, and lives. Procedural graphics only, no external assets.
transcript · 4 messages
Build a playable Space Invaders game on a canvas: a player cannon that moves and shoots, a descending grid of aliens that advance and fire back, destructible bunkers, score, and lives. Procedural graphics only, no external assets.
thinking
I'll build a single HTML canvas Space Invaders game, starting with player cannon functions.All required game features have been clarified, and the implementation will be carried out step by step.
/tmp/ws/index.html (18304 bytes)Successfully wrote 18304 bytes to /tmp/ws/index.html
thinking
File written successfully, will verify and summarize.
Created `/tmp/ws/index.html` — a fully self-contained Space Invaders game. **Features:** - **Player cannon** — moves left/right (← → or A/D), fires with Space/↑/W - **5×11 alien grid** — 3 types (squid/crab/octopus) with different point values, animated walking frames, march side-to-side and descend on edge contact - **Alien fire** — random bottom-row aliens shoot back; speed/difficulty scales with level and remaining aliens - **4 destructible bunkers** — pixel-by-pixel destruction with cratering on bullet impact - **HUD** — score, lives, level - **Levels** — clear all aliens to advance; bunkers repair every 2 levels - **Explosions** — particle effects on kills and hits - **Procedural graphics** — all sprites drawn with canvas rectangles (aliens, cannon, bunkers), stars twinkle in background - **Controls** — P to pause, Enter to restart after game over Open the file directly in a browser — no network or external assets needed.
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
Functional Space Invaders with cannon, aliens, bunkers, score/lives, and game over screen after losing all lives.
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.