A collection of simple, fun, and nostalgic 2D web games built with vanilla HTML, CSS, and JavaScript.
No frameworks. No libraries. Just pure browser games.
| Game | Description | Status |
|---|---|---|
| 🧩 Astro Dodge | Pilot a spaceship and dodge incoming asteroids | ✅ Ready |
| 🎯 Pixel Strike | Fast-paced military battle shooter | ✅ Ready |
| 🐍 Void Runner | Endless runner set in an alien world | ✅ Ready |
These games use ES modules and fetch for assets, so opening index.html directly in the browser will fail (CORS / module errors). You must serve the files with a local web server.
git clone https://github.com/mustapha-devstack/mini-web-games.git
cd mini-web-games
# Install once (optional)
npm install -g serve
# Run from the project root
npx serve .
# or
serve .
# OR Use
# Python 3
python -m http.server 8000
# Python 2 (legacy)
python -m SimpleHTTPServer 8000