# Vector Asteroids — Complete Implementation Blueprint ## 1. Purpose This document is the implementation contract for a polished single-file arcade demo in the style of classic vector Asteroids. The finished deliverable for the game milestone must be a single self-contained `index.html` that can be opened directly from disk and played with no network access, no server, no external files, and no build step. This blueprint specifies: - single-file architecture - game loop - state machine - entity/object model - player movement and combat - asteroid generation and splitting - saucer enemy behavior - collision strategy - scoring, lives, levels, and high score - audio synthesis plan - neon vector visual style - input mapping - responsive canvas behavior - localStorage persistence - implementation sequencing and robustness rules ## 2. Non-negotiable constraints The final implementation must obey these constraints exactly. ### 2.1 Single file The game ships as: ```text index.html ``` No other runtime files are allowed. ### 2.2 Inline CSS and JavaScript only `index.html` may contain: - normal HTML - one or more inline `