A modern multiplayer snake game built with Node.js and Phaser 3, featuring real-time gameplay and unique mechanics.
- Multiplayer Gameplay: Play with multiple players in real-time
- Modern Graphics: Smooth animations and visual effects
- Dynamic Food System:
- Different types of food with varying effects
- Speed boost powerups
- When a snake dies, its segments turn into food
- Interactive UI:
- Real-time scoreboard showing top 5 players
- Minimap for better navigation
- Score and high score tracking
- Smooth Controls: Responsive keyboard controls (WASD/Arrow Keys)
- Node.js (v12 or higher)
- npm (comes with Node.js)
- Clone the repository:
git clone https://github.com/yazilimacademy/cilgin-yilan-js
cd cilgin-yilan-js
- Install dependencies:
npm install
- Start the server:
npm start
- Open your browser and navigate to:
http://localhost:30001
- Enter your username when prompted
- Use WASD or Arrow keys to control your snake
- Collect food to grow:
- Red food: Regular growth
- Yellow food: Extra points
- Green food: Speed boost
- Avoid colliding with other players
- When a snake is defeated, its body turns into food for other players
- Growth System: Each food item increases your snake's length
- Speed Mechanics:
- Snake speed decreases slightly as you grow longer
- Green food provides temporary speed boosts
- Scoring System:
- Regular food: 10 points
- Super food: 25 points
- Speed boost food: 15 points
- Minimap: Shows your position and visible range in the arena
- Frontend:
- Phaser 3 for game rendering
- Socket.io for real-time communication
- Backend:
- Node.js server
- Socket.io for multiplayer support
- Game Logic:
- Collision detection
- Food spawning system
- Player state management
Contributions are welcome! Feel free to submit issues and pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
- Phaser.js team for the amazing game framework
- Socket.io team for real-time capabilities
- All contributors who helped improve the game