Skip to content

Scrawach/SnakeMultiplayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy

Snake Multiplayer

A multiplayer snake-inspired arcade game on Unity.

Stack

  • Reflex: minimal dependency injection framework for Unity.
  • Colyseus: multiplayer framework for Node.js.
  • Unity UI Toolkit: screen space and world space UI.
  • A little bit UniTask.
  • Github Actions: deploy server as docker container on every push in main.

Gameplay

SnakeMultiplayer.webm

Deploy

Docker

Warning

Required docker and docker-compose.

  1. Go to the server folder:
cd server
  1. Start container:
docker-compose up

That's all. Now you have a container running on your machine with a server for the game on port 2567. If this port is busy, there will be problems, so you can change it in the corresponding docker compose file.

NPM

Warning

Required NPM.

  1. Go to server folder with source code:
cd server/SnakeMultiplayerServer
  1. Install dependecies:
npm install
  1. Start server:
npm start

That's all. Now you can start the game client and connect to the game.