Asteroids · inkling-small
Output generated Cost / run $0.0141 Runtime 19.0s
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 · 6 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.
thinking
The user wants a single-file Asteroids game with vector graphics only. I'll write index.html with canvas, CSS, and JS all embedded. Key features: thrust/rotate ship, wrap edges, shoot bullets, split asteroids, score, lives. Proceed to write.
{"command":"cat > index.html << 'EOF'\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"UTF-8\">\n<title>Asteroids</title>\n<stydone
thinking
Confirm file exists and report.
{"command":"ls -l index.html && wc -l index.html"}-rw-r--r--. 1 node node 7937 Aug 1 19:44 index.html 230 index.html
thinking
File written successfully; summarize features briefly.
Created `index.html`: single self-contained Asteroids game with canvas vector graphics, thrust/rotate ship with wrap-around, shooting, asteroid splitting, score/lives HUD, particle explosions, starfield, keyboard controls, and restart support — all inline with no external assets.