oneshotlm
Compare all models on this prompt →

Space Invaders · seed-2-1-turbo

Output generated Cost / run $0.0230 Runtime 108.6s

Prompt for this run

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.

⛨ sandboxed Open in new tab ↗

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

modelseed-2-1-turbo
vendorByteDance · Seed
harnesspi-agent
generated2026-08-13

METRICS

runtime108.6s
tokens in11k
tokens out7.6k
cached2.7k
cost / run$0.0230
Transcript · 4 messages
user

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.

assistant
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.
→ write /tmp/ws/index.html (18304 bytes)
toolResult

Successfully wrote 18304 bytes to /tmp/ws/index.html

assistant
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.