A simple implementation of the classic Space Invaders game using HTML, CSS,
and JavaScript - no game framework, just a <canvas>.
- Left / Right arrow: move (hold to keep moving)
- Space: shoot
- R: restart after a game over
Shoot the invaders before they reach you. Each cleared wave spawns a faster one, and every invader is worth 10 points.
npm install
npm run devThen open the URL Vite prints (usually http://localhost:5173).
npm run build creates a production build in dist/, and npm run preview
serves that build locally.