1 min
The creation of the lobby for the networked board game
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.
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.
Here is an image of the console when a player joins the lobby.
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.
Here is an image of the current lobby with all four players and their names.
Subscribe to this blog via RSS.
C++ 30
Directx12 11
Mario kart 11
Commercial games development 15
Unity 15
Low-level programming (19) C++ (30) Text based adventure (5) Ex-machina (9) Game engine programming (11) Directx12 (11) Mario kart (11) Land of gold (5) Audio visual production (1) Commercial games development (15) Unity (15) Don't walk by (15)