Top-down alien shooter · ling-2.6-1t
Output generated Cost / run $0.0077 Runtime 70.8s
Prompt for this run
Using the pre-provided phaser.min.js (global Phaser), build a top-down alien shooter: move with WASD, aim and fire at waves of advancing aliens, with health, score, and increasing difficulty. Use ONLY procedurally generated graphics, no external image or audio 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
Using the pre-provided phaser.min.js (global Phaser), build a top-down alien shooter: move with WASD, aim and fire at waves of advancing aliens, with health, score, and increasing difficulty. Use ONLY procedurally generated graphics, no external image or audio assets.
I'll create a top-down alien shooter with procedural graphics using Phaser. Let me build this as a single HTML file.
/tmp/ws/index.html (34999 bytes)Successfully wrote 34999 bytes to /tmp/ws/index.html
I've created a complete top-down alien shooter with procedurally generated graphics. Here's what's included: ## Features **Controls:** - **WASD** - Move the player ship - **SPACE** - Fire bullets - **R** - Restart after game over **Gameplay:** - Waves of advancing aliens spawn from all sides - Aliens target the player and fire back - Health, score, and wave tracking - Increasing difficulty each wave (more aliens, faster, more aggressive) - Player knockback when hit - Healing between waves **Procedurally Generated Graphics:** - **Player ship** - Blue triangular fighter with engine glow and cockpit - **3 Alien types** - Organic green oval, crystalline pink hexagon, orange insectoid - **Bullets** - Cyan energy projectiles (player), red energy projectiles (aliens) - **Explosions** - 4 color variations (red, green, blue, yellow) - **Starfield background** - 3 parallax layers for depth - **Health bar** - Gradient from red → yellow → green **Visual Effects:** - Particle trail behind player ship - Explosion particles on kills and damage - Screen shake on damage - Hit flash on enemies - Parallax scrolling starfield **Progression:** - Wave counter increases difficulty - More aliens per wave - Aliens get faster and fire more frequently - Score bonus per wave - Small health recovery between waves