A modern take on the classic Snake game where you play on your desktop and use your smartphone as a wireless controller!
Open the Live Demo on your computer. A unique 6-digit session code and QR code will appear.
Scan the QR code with your phone or enter the session code manually.
- Joystick: Rotate to turn, pull further for a speed boost.
- Play Button (โถ): Start the game.
- Restart Button (โป): Play again after a crash.
If you want to run the project locally or contribute:
- Node.js (v16+)
- Firebase account (optional, for cross-device features)
-
Clone & Install
git clone https://github.com/yourusername/snake-game.git cd snake-game npm install -
Configuration Add your Firebase credentials to
public/js/config.js. -
Run
npm start # Visit http://localhost:3000
- Zero Latency: Real-time sync via Firebase Firestore.
- Cross-Platform: Works on any modern browser (iOS, Android, Windows, macOS).
- Smart Fallback: Automatic
localStoragemode for testing on a single device. - Responsive Design: Custom-built touch joystick for mobile controllers.
Made with โค๏ธ for the retro gaming community.
Feel free to โญ star this repo if you enjoyed the game!