Space Invaders from ONE Prompt!
Space Invaders. One prompt. That's all it took to build this classic arcade shooter in seconds. What one prompt game would you like next? The AI: https://chatgpt.com/ The Prompt: Build a polished Space Invaders game as a single self-contained HTML file using HTML, CSS, and vanilla JavaScript only. Must-have features: - Working left/right movement with Arrow keys - Working shooting with Spacebar - Prevent key handling bugs so the ship always moves correctly - Smooth continuous movement when holding keys - Alien grid moves side to side, drops down on wall hit - Player bullets destroy aliens - Enemy bullets can hit player - Game over if player is hit or aliens reach bottom - Score, lives, and level display - Start screen and game over screen - Proper Restart Game button that fully resets the game state - At least 3 power-ups (example: rapid fire, double shot, shield) - Better retro arcade graphics, glow effects, stars, explosions, nicer ship and alien designs - Increasing difficulty each level - Pause/resume with P Technical requirements: - All code in one HTML file - No external libraries - No image assets required - Clean, commented code - No bugs from duplicate event listeners, stale timers, or broken restart logic - Use robust collision detection and a reliable game loop Output only the final complete HTML file in one code block.