An asteroids game in JavaScript
A simple remake of the classic arcade game asteroids in JavaScript
- HTML
- HTML5 Canvas
- CSS
- JavaScript
- Vanilla JavaScript
Simply clone the repository and open index.html to play
Run the smoke tests with:
node js/test.js- W or up arrow = Thrust
- A/D or left/right arrows = Rotate
- S or down arrow = Reverse thrust
- G key or space = Fire the laser
- Enter = Start or restart
- P key = Pause