Skip to content

wilfredor/spaceinvaders

Repository files navigation

spaceinvaders

A TypeScript/canvas clone of Space Invaders, the 1978 arcade video game designed by Tomohiro Nishikado.

How to play

You can either play online using your mouse or keyboard arrows:

... or you can:

  • Download the repo (zip), extract, and run index.html in Firefox or Chrome
  • git clone https://github.com/wilfredor/spaceinvaders.git and run index.html

Local development

Requirements: Node 18+ and npm.

Install dependencies:

npm install

Start the dev server on http://localhost:4000:

npm run develop

Build the production bundle to dist/:

npm run build

Deployment

  • Commits pushed to master trigger the GitHub Actions workflow at .github/workflows/deploy.yml.
  • The workflow builds the bundle and publishes the site to GitHub Pages at http://wilfredor.github.io/spaceinvaders.
  • Ensure the repository Pages setting is set to deploy from GitHub Actions so the workflow can upload successfully.

Controls

  • Move: Left/Right arrows or mouse
  • Fire: Spacebar or left click
  • Pause: P

About

Space invaders game in Typescript and canvas

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages