A multiplayer web game. Up to 5 players, be the first to collect the maximum of candies on the map !
demo_candy_rush.mp4
Eating an item modifies the player's score.
Candy | Points |
---|---|
🍬 | 1 |
🍪 | 2 |
🍩 | 5 |
🧁 | 10 |
🥦 | -5 |
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.
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 |