A TypeScript/canvas clone of Space Invaders, the 1978 arcade video game designed by Tomohiro Nishikado.
You can either play online using your mouse or keyboard arrows:
... or you can:
- Download the repo (zip), extract, and run
index.htmlin Firefox or Chrome git clone https://github.com/wilfredor/spaceinvaders.gitand runindex.html
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
- Commits pushed to
mastertrigger 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.
- Move: Left/Right arrows or mouse
- Fire: Spacebar or left click
- Pause: P