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
, andBullet
classes that inherit from theMovinObject
superclass- collision detection algorithm based on line segment interesctions