Multiplayer Lobby


I didn’t want to have players wait around looking at a UI screen “Waiting for players”. Instead, I created a lobby area where players who are already connected can learn the game and get used to the controls while waiting for others to join.

I may have players craft some fire wood and light a campfire before opening the gates into the forest as a mini tutorial since that’s a requirement for surviving each night.

In this Multiplayer Lobby area, I have 3 entrances into the forest.
The idea here is to have players start Co-Op mode by entering through the middle, or players can choose their teams by entering through the left or right paths.

Netcode

Netcode is difficult. I especially had difficulty with setting initial spawn points. The easy thing to do would be to set the spawn points on the server, then assign and broadcast them when players join. I wanted the spawn points to be set in the game client cause it’s easier to adjust game parameters in Godot, than to hard code a bunch of them on the server for each map. Changing a map might mean changing the spawn points and i didn’t want to have to do that in two places, game client and server.

Host Sequence

Guest Sequence

Demo

Get Camp Fire Craft

Leave a comment

Log in with itch.io to leave a comment.