Single and two-player multiplayer snake game featuring an own docker-virtualized webserver and gameserver with private game rooms for you and your friends :)
- Docker
w,a,s,d for up, left, down and right
- Snake Game
- Webserver
- Database support
- clone the repo
- goto
snake/server - build docker image manually or use
build.bat/build.sh - start the docker container manually or use
start.bat/start.sh - to stop the game server either kill the container with
docker killor pressctr + c - paste the displayed websocket url in
snake/client/game.js> gameserverIp
- go into
webserver - build docker image manually or use
build.bat/build.sh - run container manually or use
start.bat/start.sh - copy the displayed Server-Url into your browser and enjoy some SNAKE alone or with friends :)
- to stop the web server either kill the container with
docker killor pressctr + c
- for webserver:
- change the port in
webserver/webserver.py - change the port in
webserver/start.bat
- change the port in
- for game server:
- change the port in
snake/server/app/src/SnakeServer.java - change the port in
snake/server/start.bat - update
snake/client/game.js> gameserverIp
- change the port in
The shell scripts are missing the execute flag. Add it with chmod +x *.sh in webserver and snake/server
Same as with the shell scripts: Execute chmod +x gradlew in snake/server
Typical caching problem. Solution:
- Clear Browser Cache
- Only if 1 didnt work: Clear Docker Cache
docker system prune -a
Public hosted Game instance for single and multiplayer can be found here