A clean, modern browser-based arcade featuring classic mini-games built using HTML, TailwindCSS, and JavaScript. This project recreates nostalgic gameplay with a sleek UI and modular architecture.
- 🎨 Modern UI with TailwindCSS
- 🧩 Multiple classic games in one place
- ⚡ Lightweight and fast (no frameworks)
- 🪟 Modal-based game system
- 🎮 Keyboard-controlled gameplay
- 📱 Responsive layout with horizontal game carousel
- 🐍 Snake
- 🟦 Tetris
- 🏓 Pong
- ⌨️ Word Attack
- 🔴 4 in a Row
/project-root
│
├── index.html
├── snake.js
├── tetris.js
├── pong.js
├── wordattack.js
├── fourinrow.js
│
└── assets (optional)
- HTML5 (Canvas API for rendering games)
- TailwindCSS (UI styling)
- Vanilla JavaScript (game logic)
- Download or clone the repository
- Make sure all
.jsfiles are in the same directory asindex.html - Open
index.htmlin your browser
No build step or server required.
- Arrow Keys / WASD → Move
- ← → → Move
- ↑ / Z → Rotate
- ↓ → Soft drop
- Space → Hard drop
- ↑ ↓ or W S → Move paddle
- Type words to destroy them
- Space → EMP ability
- Mouse click → Drop piece
-
Each game is encapsulated in its own JS module
-
Games are initialized using:
GameName.init(canvas, ...uiElements)
-
Cleanup handled via:
GameName.destroy()
-
Modal system controls game lifecycle
You can easily:
- Add new games (create new
.js+ modal) - Modify UI via Tailwind config
- Adjust difficulty inside individual game files
- No persistent leaderboard
- No multiplayer (except local logic like CPU)
- No mobile touch controls (yet)
- 🏆 Leaderboard system
- 🌐 Multiplayer support
- 📱 Touch/mobile controls
- 💾 Save game progress
- 🎵 Sound effects & music
This project is open-source and free to use for learning or personal projects.
Built as a modern arcade experiment combining UI design and game development fundamentals.