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:
- Host: GitHub
- URL: https://github.com/alextanhongpin/typescript-asteroid-remake
- Owner: alextanhongpin
- Created: 2018-06-11T17:45:03.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-01-19T17:19:04.000Z (over 7 years ago)
- Last Synced: 2025-01-29T21:51:40.564Z (over 1 year ago)
- Topics: asteroid, typescript
- Language: TypeScript
- Size: 325 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/).

## 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