Space Invaders · glm-5
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
The user wants me to build a Space Invaders game with: 1. A player cannon that moves and shoots 2. A descending grid of aliens that advance and fire back 3. Destructible bunkers 4. Score tracking 5. Lives system 6. Procedural graphics only (no external assets) Let me create a complete, self-contained HTML file with all the game logic.
/workspace/index.html (23050 bytes)Successfully wrote 23050 bytes to /workspace/index.html
thinking
I've created a complete Space Invaders game. Let me verify the file was created correctly.
I've created a fully playable Space Invaders game with all the requested features: **Features included:** - **Player cannon** - Moves left/right with arrow keys or A/D, shoots with SPACE - **Alien grid** - 5 rows × 11 columns of 3 different alien types (squid, crab, octopus) with different point values and colors - **Alien behavior** - Descends, reverses direction at edges, speeds up as fewer aliens remain, and shoots back randomly - **Destructible bunkers** - 4 arched bunkers that pixelate away when hit by any bullets - **Score system** - Different points per alien type (30/20/10), displayed with high score saved to localStorage - **Lives system** - 3 lives, game over when depleted or aliens reach the player - **Level progression** - Each wave increases difficulty (faster movement, more frequent shooting) **Controls:** - ← → or A/D: Move cannon - SPACE: Shoot / Start game - P: Pause/Resume **Visual features:** - All procedurally drawn pixel-art style sprites - Animated alien frames - Explosion effects - Starfield background - Classic green-on-black aesthetic The game runs entirely in the browser with no external dependencies.
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
Space Invaders with aliens, bunkers, cannon, score/lives HUD; starts on Enter/Space, aliens move, mouse input inert.
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.