/asteroids

In-browser game built using object-oriented Javascript and HTML5 Canvas.

Primary LanguageJavaScript

Asteroids!

My version of the classic arcade game built with object-oriented JavaScript and HTML5's canvas element.

I originally built this with Drew when we were first learning JavaScript at App Academy. I've since heavily modified and refactored the code.

All of the game functionality is in app.js.

Features:

  • Ship, Asteroid, and Bullet classes that inherit from the MovinObject superclass
  • collision detection algorithm based on line segment interesctions