/Space-Invaders_GAME

Space Invaders (vanilla JavaScript, HTML Canvas, Vite.js)

Primary LanguageJavaScript

Space Invaders RETRO GAME

preview

Web-based legendary classic arcade game Space Invaders made with JavaScript and Canvas with its iconic pixel graphics and addictive gameplay with mobile adaptivity and touch controls.


Installation

npm install

Start Dev Server

npm start

Build Production Version

npm run build

Preview Build Production Version

npm run serve

Deployment on GitHub Pages (Optional)

npm run deploy

This adds gh-pages branch to your project github repository, deploys built project there, hosts the site via GitHub Pages.

Features:

  • Legacy Browsers support via @vite/plugin-legacy with built-in babel
  • SCSS support via sass
  • Linting support via eslint
  • Formatter support via prettier
  • Autoprefix support via postcss
  • Image Optimization support via vite-plugin-image-optimizer

When you run npm run build: