Skip to main content

Features

Core Gameplay

  • Player-controlled spaceship with rotation and thrust mechanics
  • Asteroid spawning and destruction system
  • Collision detection between ship, asteroids, and projectiles
  • Score tracking system

Game Mechanics

  • Ship invincibility window after respawn
  • Blinking effect during invincibility frames
  • Progressive difficulty as asteroids are cleared
  • Screen wrapping for continuous movement

Persistence

  • High score saved using browser local storage
  • Automatic retrieval and update of best score

Code Quality

  • Strong typing with TypeScript
  • Modular class-based structure
  • Separation of concerns (rendering, logic, input)