Thanks to visit codestin.com
Credit goes to github.com

Skip to content

junchen4/asteroids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asteroids.js

Browser-based remake of the classic arcade game

How-to

  • Use arrow keys to move in corresponding directions
  • Press "spacebar" to fire
  • Press "s" to activate shield (lasts several seconds)

Features

  • Keeps track of score, lives remaining, shields remaining
  • (future) Keep track of high-score, increase difficulty, add sound effects

Technical Goodies

  • Written in JavaScript using HTML5 Canvas API
  • Implements inherits function (in util.js class) for inheritance design pattern
  • Ship class uses JavaScript 'Math' Object to calculate ship and bullet movement
  • Game class determines collisions and removes appropriate objects

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published