oneshotlm
Compare all models on this prompt →

Asteroids · gpt-4.1-mini

Output generated Cost / run $0.0093 Runtime 56.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

modelgpt-4.1-mini
vendorOpenAI
harnesspi-agent
generated2026-08-01

METRICS

runtime56.1s
tokens in6.6k
tokens out4.4k
cached1.2k
cost / run$0.0093
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

Creating a complete playable Asteroids game as a single self-contained HTML file with inline CSS and JS. The game features: - A canvas with procedural vector graphics - A player ship that can rotate, thrust, and shoot bullets - Asteroids that break into smaller ones when shot - Wrapping around edges for ship, bullets, and asteroids - Score and lives displayed I will write the full index.html now.

→ write index.html (13771 bytes)
toolResult

Successfully wrote 13771 bytes to index.html

assistant

I have built a complete playable Asteroids game in a single file named index.html. Open this file in a browser to play: - Use Left/Right arrows or A/D to rotate the ship - Use Up arrow or W for thrust - Press Space to shoot - Ship, asteroids, and bullets wrap around screen edges - Asteroids break into smaller pieces - Score and lives are shown with game over message Let me know if you want any enhancements or changes!