The classic game with a Harry Potter twist.
http://akanshmurthy.github.io/asteroids/
- Allows players to navigate and shoot with keyboard strokes.
- Utilizes the Canvas API and the Keymaster microlibrary.
- Rotates ship by calculating velocity and position with trigonometric functions.
- Spawns enemies with a custom seeding algorithm for added difficulty.
Visit and link at the top of this page and PLAY!
Use the up key to thrust, down key to brake, left/right keys to rotate the ship (aka Harry's head), and press SPACE to shoot the dementors!
- sprites for enemy explosions
- damage, shield, and powerup capabilities
- switch to requestAnimationFrame for smoother game play