Skip to content

SmaRTy-Saini/asteroids-canvas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ Asteroids โ€” Canvas Arcade

A modern remake of the classic Asteroids arcade game built using
Vanilla JavaScript + HTML5 Canvas โ€” no frameworks, no build tools.

This project focuses on clean game architecture, physics, collision detection, and classic arcade gameplay mechanics, all running directly in the browser.


๐ŸŽฎ Features

  • Ship rotation, thrust, hyperspace & shooting
  • Toroidal (wrap-around) world with accurate collision detection
  • Asteroids that split into smaller, faster pieces
  • UFO enemies with adaptive AI and return fire
  • Particle effects (explosions & thrusters)
  • Multiple lives, progressive levels, and difficulty scaling
  • Persistent high score using localStorage
  • Keyboard + pointer (mouse/touch) support
  • Fully playable by opening a single HTML file

๐Ÿ•น Controls

  • โ† / โ†’ or A / D โ€” Rotate ship
  • โ†‘ or W โ€” Thrust
  • Space โ€” Fire
  • Shift โ€” Hyperspace jump
  • P โ€” Pause / Resume
  • Enter โ€” Start / Restart

๐Ÿ›  Tech Stack

  • HTML5 Canvas
  • Vanilla JavaScript (ES6)
  • Tailwind CSS (CDN, UI only)

No frameworks. No build process. Just clean browser-native code.


Author

Smarty Saini

๐ŸŒ Links

โ–ถ๏ธ Run Locally

Simply open index.html in any modern browser.

git clone https://github.com/smarty-saini/asteroids-canvas.git
cd asteroids-canvas
open index.html

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages