oneshotlm
Compare all models on this prompt →

Asteroids · gemini-3.1-flash-lite-preview

Output generated Cost / run $0.0043 Runtime 11.1s

Prompt for this run

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.

⛨ 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

modelgemini-3.1-flash-lite-preview
vendorGoogle
harnesspi-agent
generated2026-07-22

METRICS

runtime11.1s
tokens in4.8k
tokens out2.0k
cached0
cost / run$0.0043
Transcript · 4 messages
user

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.

assistant
thinking
**Defining the Core Features**

I'm now zeroing in on defining the core features of the Asteroids game, specifically for a single-page HTML implementation. Key elements like the thrust-and-rotate ship, shooting, edge wrapping, asteroid splitting, score, and lives are all being ironed out to achieve a concise yet engaging experience.


→ write index.html (5365 bytes)
toolResult

Successfully wrote 5365 bytes to index.html

assistant

The Asteroids game is ready. You can test it by opening `index.html` in your browser. Use the **Arrow Keys** to move/rotate and the **Spacebar** to shoot.