SCORE: 0
``` ### Key Features of this Implementation: 1. **Retro Visuals:** * Uses `image-rendering: pixelated` to ensure the canvas doesn't blur when scaling. * Uses a limited color palette (Cyan, Magenta, Yellow, White) to mimic the C64's color modes. * All graphics are drawn using `fillRect`, creating a "blocky" pixel-art look without needing external `.png` files. 2. **Gameplay Mechanics:** * **Horizontal Scrolling:** The stars and enemies move from right to left, creating the illusion of forward flight. * **Enemy Variety:** Includes "Scouts" (straight movement) and "Interceptors" (sinusoidal/wavy movement). * **Particle System:** When an enemy is destroyed, it triggers a burst of colored pixels. * **Difficulty:** Enemies spawn at a set rate, and the player must dodge or shoot them to survive. 3. **Technical Design:** * **Single File:** Everything (HTML, CSS, JS) is contained in one block. * **Zero Dependencies:** No external libraries like jQuery or Phaser are used; it relies purely on the native HTML5 Canvas API. * **Responsive Logic:** The game loop uses `requestAnimationFrame` for smooth performance. ### How to Play: * **Arrow Keys:** Move your ship (Up, Down, Left, Right). * **Spacebar:** Fire your laser. * **Goal:** Destroy the incoming enemy ships and avoid collisions to increase your score.