oneshotlm
Compare all models on this prompt →

Space Invaders · nova-2-lite-v1

Output generated Cost / run $0.0154 Runtime 45.5s

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

modelnova-2-lite-v1
vendorAmazon · Nova
harnesspi-agent
generated2026-08-01

METRICS

runtime45.5s
tokens in14k
tokens out4.4k
cached0
cost / run$0.0154
Transcript · 6 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
[REDACTED].
→ write index.html (17871 bytes)
toolResult

Successfully wrote 17871 bytes to index.html

assistant
thinking
[REDACTED].
→ bash {"command":"ls -l index.html"}
toolResult

-rw-r--r--. 1 node node 17871 Aug 1 20:49 index.html

assistant
thinking
[REDACTED].

✅ I've created a complete, playable Space Invaders game in a single `index.html` file! The implementation includes: **Features:** - Player cannon that moves left/right with arrow keys - Space bar to fire bullets - Grid of descending aliens that shoot back - Destructible bunkers with damage visualization - Score tracking and lives system - Start/game over screens with restart functionality - Procedural graphics (no external assets) - Fully self-contained (no network requests) **How to play:** 1. Open `index.html` in any modern browser 2. Press START GAME 3. Use ← → to move cannon, SPACE to fire 4. Survive waves of aliens to score points! The game includes all game logic, rendering, collision detection, and UI elements in a single file with no dependencies. The aliens get progressively harder as you advance through waves!