Reader small image

You're reading from  The Essential Guide to Creating Multiplayer Games with Godot 4.0

Product typeBook
Published inDec 2023
Reading LevelIntermediate
PublisherPackt
ISBN-139781803232614
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Henrique Campos
Henrique Campos
author image
Henrique Campos

Henrique Campos is an indie game developer and game designer working in the industry since 2015. Starting as a University teacher in the Computer Graphics and Artificial Intelligence chairs and working for the GDQuest team from 2018 to 2022, he has also been providing consultancy for solo developers, studios, and schools. Under the alias of Pigdev, Henrique has been creating game development content on his YouTube channel since 2016. Among his projects, he wrote the Top 7 Godot Engine Recipes and the Platformer Essential Recipes ebooks where he presents design patterns that people can use to make games with the Godot Engine. A passionate open-source enthusiast, Henrique has been working and contributing to the Godot Engine project since 2016.
Read more about Henrique Campos

Right arrow

Testing the lobby

To test this out, we are going to run three instances of the game:

  1. Go to Debug | Run Multiple Instances and select Run 3 Instances.
Figure 3.3 – Choosing to run three instances in the Run Multiple Instances menu

Figure 3.3 – Choosing to run three instances in the Run Multiple Instances menu

  1. Then, open the res://03.making-lobby-to-gather-players/MainMenu.tscn scene and hit the Play button.
  2. Pick one of the instances to be the game’s server. To do that, just click on the Server button.
Figure 3.4 – Pressing the Server button on the MainMenu screen

Figure 3.4 – Pressing the Server button on the MainMenu screen

  1. Now, pick another instance and click on the Client button. It will take you to the LobbyLogin screen, where you can enter the first fake player’s credentials.
  2. Insert user1 in the username field and test in the password field. These are the credentials we added to FakeDatabase.json for our first user. Then, press the Login button. It will take you to the LobbyClient screen with a single...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
The Essential Guide to Creating Multiplayer Games with Godot 4.0
Published in: Dec 2023Publisher: PacktISBN-13: 9781803232614

Author (1)

author image
Henrique Campos

Henrique Campos is an indie game developer and game designer working in the industry since 2015. Starting as a University teacher in the Computer Graphics and Artificial Intelligence chairs and working for the GDQuest team from 2018 to 2022, he has also been providing consultancy for solo developers, studios, and schools. Under the alias of Pigdev, Henrique has been creating game development content on his YouTube channel since 2016. Among his projects, he wrote the Top 7 Godot Engine Recipes and the Platformer Essential Recipes ebooks where he presents design patterns that people can use to make games with the Godot Engine. A passionate open-source enthusiast, Henrique has been working and contributing to the Godot Engine project since 2016.
Read more about Henrique Campos