Setting up online multiplayer paddles
It’s time to start your actual work. After understanding the whole project, let’s do the necessary work to allow players to play it online!
In Chapter 6, Building an Online Checkers Game, we saw that changing the multiplayer authority of a SceneTree
branch allows the new peer to take over control of the changes made to that branch of nodes. This was how we made it so that the player playing on the white team couldn’t move the black team’s pieces, and vice versa.
Being able to dynamically change the multiplayer authority is a core skill that we need to develop to maintain a coherent shared world for our players. In the situation we mentioned, players took turns in which each of them performed a single move and then the opposite player took control of their pieces. In this chapter, on the other hand, players must move simultaneously as this is an action game.
In the upcoming sections, we are going to implement...