An open API service indexing awesome lists of open source software.

https://github.com/alextanhongpin/typescript-asteroid-remake

asteroid remake :alien: :rocket: :space_invader:
https://github.com/alextanhongpin/typescript-asteroid-remake

asteroid typescript

Last synced: 29 days ago
JSON representation

asteroid remake :alien: :rocket: :space_invader:

Awesome Lists containing this project

README

          

# asteroid remake

Attempting to rewrite the asteroid game with TypeScript and better code structure. Play it [here](http://alextanhongpin.github.io/games/).

![game.png](./assets/game.png)

## Installation

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

## Start

```bash
$ 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