Top-down alien shooter · qwen3-coder
Output generated Cost / run $0.0039 Runtime 50.6s
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 using Phaser with procedurally generated graphics. Here's the complete solution in a single HTML file:
index.html (11903 bytes)Successfully wrote 11903 bytes to index.html
I've created a complete top-down alien shooter game using Phaser with procedurally generated graphics. The game features: - WASD movement for the player - Mouse aiming and shooting - Waves of aliens that spawn from the edges and chase the player - Health system and scoring - Increasing difficulty with each wave - Start screen and game over screen - Procedurally generated graphics (no external assets) The game includes: 1. A player ship controlled with WASD keys 2. Aliens that spawn from screen edges and chase the player 3. Bullet physics and collision detection 4. Health and score tracking 5. Wave progression with increasing difficulty 6. Visual feedback for all game elements To play: 1. Click "START MISSION" on the start screen 2. Move with WASD keys 3. Aim with your mouse 4. Click to shoot at aliens 5. Avoid aliens to preserve health 6. Try to survive as many waves as possible The game ends when your health reaches zero. You can then restart for another attempt. All graphics are generated procedurally using Phaser's drawing capabilities - circles for the player, triangles for aliens, and circles for stars. The game is completely self-contained in a single HTML file with no external dependencies.