Space Invaders RETRO GAME
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 babelSCSS
support via sassLinting
support via eslintFormatter
support via prettierAutoprefix
support via postcssImage Optimization
support via vite-plugin-image-optimizer
npm run build
:
When you run - All image files (svg, png, jpg/jpeg, tiff, gif, webp, avif) gets compressed with lossless quality
via vite-plugin-image-optimizer.