Skip to content

🍭 A local multiplayer web game using WebSockets.

Notifications You must be signed in to change notification settings

LFLCH/candy-rush

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Candy Rush 🍭

A multiplayer web game. Up to 5 players, be the first to collect the maximum of candies on the map !

Demo

demo_candy_rush.mp4

Rules

Eating an item modifies the player's score.

Candy Points
🍬 1
🍪 2
🍩 5
🧁 10
🥦 -5

Technologies

NodeJS TypeScript Jest

HTML5 JavaScript p5js Mocha

CI/CD

This project was originally made on GitLab. It is why you can see a .gitlab-ci file. It was fitting our Agile development process, running tests at each commit, to ensure our sprint where validated.

Message format

In order to properly exchange messages between the clients and the server via WebSockets, a format, called candy-rush-protocol has been set up.

Origin Method Description
client connect Connection initialization
server registration Validation of the connection attempt
client player-ready Request to join the new game
server game-init Update of the waiting room, with the list of all the registered players
server game-start Starting game event
client player-update Move done by the player
server game-update Candies and players positions and scores update
server game-end End game event

Authors

Léo FILOCHE & Jérémy BINDEL

About

🍭 A local multiplayer web game using WebSockets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published