https://github.com/toomanybees/asteroids
https://github.com/toomanybees/asteroids
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/toomanybees/asteroids
- Owner: TooManyBees
- Created: 2013-09-24T21:57:39.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-12-06T01:26:27.000Z (over 12 years ago)
- Last Synced: 2026-02-12T09:54:06.545Z (4 months ago)
- Language: JavaScript
- Size: 645 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Asteroids
A simple JavaScript and HTML Canvas game. ([Live demo on GitHub Pages](http://toomanybees.github.io/asteroids/))
This started out as a simple exercise in prototypal inheritance, but I expanded it to include weapons, extra lives, and a score (the trappings of a real game).
'W' is thrust, 'A' and 'D' are rotate, 'space' is shoot, and ` pauses the game..
Uses the [Keymaster library](https://github.com/madrobby/keymaster) for key input.
## To Do
* Employ requestAnimationFrame