Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Space Invaders

A simple implementation of the classic Space Invaders game using HTML, CSS, and JavaScript - no game framework, just a <canvas>.

Controls

  • 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.

Run it

npm install
npm run dev

Then 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.

About

A simple implementation of the classic Space Invaders game using HTML, CSS, and JavaScript - no game framework, just a <canvas>.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages