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.
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
METRICS
Transcript · 4 messages
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.
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.
index.html (13771 bytes)Successfully wrote 13771 bytes to index.html
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!