Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 588 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 588 Bytes

asteroid remake

Attempting to rewrite the asteroid game with TypeScript and better code structure. Play it here.

game.png

Installation

# Required for the vim auto-completion and linter to work.
$ npm i -g typescript
$ npm i

Start

$ npm start

Things I learnt

  • Decorators in Typescript
  • decoupling functionalities through event-emitter (observer)
  • shared global dispatcher for character registration/deregistration
  • inheritance and adding behaviours dynamically
  • and many more