____ _ _ _
/ ___|| |_ _| |_| |__
\___ \| | | | | __| '_ \
___) | | |_| | |_| | | |
|____/|_|\__, |\__|_| |_|
|___/ Slyth
Multiplayer snake game writen on Python
TO-DO:
- Server
- Web client (writen on JS)
- Text chat
- Mobile web client (optimize for mobile devices)
- Leaderboard
- Reactions (like emoji, when you press num keyboard shows emoji above your snake head)
Tested on python 3.11
git clone https://github.com/Arizel79/Multiplayer-snake-game.git
cd Multiplayer-snake-game
python3 -m venv .venv
source .venv/bin/activate # on Windows: .\.venv\Scripts\activate
pip install -r requirements.txt
You can edit config.yaml to setup server
python3 main.py
- Open
web/game.htmlin browser - Enter player name, color and server address
- Click "Play"
Controls:
- WASD - move snake
- space - move faster
- T - open chat
- ESC - close chat
- TAB - open players list
Chat commands:
.q- disconnect from server/killme- kill self/kickme- kick self