Skip to content

A simple arcade-style web game made with TypeScript, Canvas and Webpack

License

Notifications You must be signed in to change notification settings

scottocorp/alien-invasion

Repository files navigation

Alien Invasion

Alien Invasion is a very simple arcade-style web game made with TypeScript and the HTML Canvas element.

Use the left, right and spacebar keys to shoot the approaching aliens, similar to Space invaders from the '80's.

screenshot

Getting started

You'll need to install node.js. I used version 20.15.0 but you can install nvm to easily switch between node.js versions.

Then:

git clone git@github.com:scottocorp/alien-invasion.git
cd alien-invasion
npm install
npm run dev

and browse http://localhost:3000/

To build:

npm run build

and deploy the contents of the /dist folder to your favorite cloud provider.

Enjoy!

TODO

This is definitely a "minimum viable product". More work is needed to:

  • Make it work on a smartphone.
  • Set up a test suite.
  • Make better use of TypeScript's interfaces & classes.
  • Fix performance issues.
  • etc

Acknowledgements

  • I used Kibo to handle keyboard events.

License

See LICENSE.md.

About

A simple arcade-style web game made with TypeScript, Canvas and Webpack

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published