Skip to content

hyunshim/Asteroids

Repository files navigation

Asteroids

Classic Asteroids Game created in TypeScript using Observables
A game created for a university assignment achieving a final score of 94/100

Accessing the game

Editing the game

  • 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!

Controls

  • w key to move forward
  • left mouse click to fire a bullet
  • right mouse click to use boost

Items

  • 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

  • Enemies will fire bullets
  • Killing an enemy acquires +30 points

Meteors

  • Big meteors will break up into three smaller meteors
  • Destroying a big meteor acquires +20 points
  • Destroying a small meteor acquires +5 points

Releases

No releases published

Packages

No packages published