The board game lobby

The board game lobby

Mar 23, 2019. | By: Evan Diamond
1 min

The creation of the lobby for the networked board game

Overview

In order for all players to join the game before it began a lobby system was created where player’s would wait for others and put in their name.

Joining the lobby

When a player goes into the lobby scene a packet is sent up to the server which in response sends a packet to all clients holding the id of the client that just joined. From this the clients know that another player has joined and how many players there are now. It also tells the player who just joined what number they are which is used in to determine parts of the game such as which player to move when that player rolls.

Packet Image

Here is an image of the console when a player joins the lobby.

Names and readying up

Before starting the game the joined players must input their player’s name and then click the ready button to show that they’re ready to start. A player can only press ready if they have a name. When a player presses ready it sends two packets to the server one saying that the player is ready and their number and another with the player’s infomation which includes their name. The server then sends these packets out to all other clients which when recieved display the player’s name and changed the ready button from read to green.

Lobby Image

Here is an image of the current lobby with all four players and their names.

About

Gamers developing new games.

Social Links

Our Bunker

University of the West of England,
Frenchay Campus, Bristol, BS16 1QY,
United Kingdom.