Classic Asteroids Game created in TypeScript using Observables
A game created for a university assignment achieving a final score of 94/100
- Play the game here!
or - Clone this repo and run
index.html
- Ensure you have Node.js installed
- Ensure you have TypeScript installed
npm install typescript
- Run
tsc --watch
so that the code can be transpiled into JavaScript - Functionality of the game can be edited by changing the asteroids.ts file in the root folder
- Open
index.html
in any browser to play the game!
- w key to move forward
- left mouse click to fire a bullet
- right mouse click to use boost
- Blue box will increase the size of the bullet
- Green box will increase the number of concurrent bullets Acquiring the same item type will stack; stacks will be lost upon acquiring a different item type
- Enemies will fire bullets
- Killing an enemy acquires +30 points
- Big meteors will break up into three smaller meteors
- Destroying a big meteor acquires +20 points
- Destroying a small meteor acquires +5 points