Top-down alien shooter · mistral-medium-3.1
Output generated Cost / run $0.0076 Runtime 30.2s
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.
index.html (11977 bytes)Successfully wrote 11977 bytes to index.html
Created a self-contained top-down alien shooter in `index.html` using Phaser with: ### Features - **Player**: WASD movement, mouse-aimed shooting (yellow bullets) - **Aliens**: Red circular enemies that spawn at screen edges and chase the player - **Procedural Graphics**: All visuals generated in-code (player triangle, alien circles, bullet rectangles) - **Game Mechanics**: - Health/Score/Wave UI - Increasing difficulty per wave (more aliens, faster spawns) - Collision detection (bullets ↔ aliens, player ↔ aliens) - Game over screen with restart button ### How to Play 1. Open `index.html` in a browser 2. Move with **WASD**, aim with mouse, shoot by clicking 3. Survive waves of aliens while your score increases No external assets or network requests—fully sandboxed. The game uses Phaser’s physics engine for collisions and movement.