Skip to content

Scrawach/SnakeMultiplayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

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.