Skip to content

madaghaxx/space-invades

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Space Invaders: Neon Defense

Fast, smooth, and share-ready Space Invaders built with pure HTML, CSS, and JavaScript. The game uses a time-based loop for consistent motion, transform-based positioning for better performance, and a compact HUD to track your run.

Highlights

  • Smooth movement with a time-based requestAnimationFrame loop
  • Transform-based rendering for fewer layout/reflow hits
  • Pause menu with resume/restart
  • HUD with score, timer, lives, and best score (saved locally)
  • Starfield background with reduced-motion support

Controls

  • Left/Right Arrow: Move
  • Space: Shoot (hold to fire)
  • P or Esc: Pause

How to Run

Open index.html in your browser.

Share Checklist

  • ✅ Responsive layout
  • ✅ Runs without external dependencies
  • ✅ Runs offline
  • ✅ Simple controls with clear instructions

Tips

  • The faster you clear the grid, the higher your chance to keep a clean run.
  • Try to keep shots focused to avoid cluttering the screen.

Tech Notes

  • The game loop uses time deltas to stay consistent across devices.
  • Elements are positioned with transform: translate3d(...) to keep rendering smooth.
  • Best score is stored in localStorage.

About

A web based game build with vanilla javascript and html and css.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors