A simple multiplayer snake game
Server is programmed to be run on passanger over plesk hosted on netcup.
Game Loop is not full implemented yet. Player, Maps and Rooms are implemented. Finishing is planned for 26.02.2023
- Plesk Webspace with Node.js Plugin
- Clone the repository to the webspace via Git
- Initialize the Node.js plugin with the path to the repository
- Install the dependencies with
npm install
- Start the server in the Node.js plugin
- Clone the repository
- Install the dependencies with
npm install
- Start the server with
npm dev
- Clone the repository
- Open the index.html in your browser
- Play the game
- Have fun
ui
-> User Interactionsrest
-> REST bindingssocket
-> Socket listeners
tools
-> Tools & npm modulesdotenv
-> environment variablesevent-emitter
-> EventEmitterlogger
-> Logger with pinoserver
-> express and socket.io server
model
-> Data modelsplayer
-> Player model with connection and game dataroom
-> available roomsgame
-> game stategame-map
-> game mapgame-loop
-> games which are running
controller
-> Controllersroom
-> Room controllerplayer
-> Player controllergame
-> Game controllergame-map
-> GameMap controllergame-loop
-> GameLoop controller with game logicvalidator
-> Validator controllermsg-coder
-> Message coder controllercode-generator
-> random Code generator controller