The game is able to add as many players that there are clients connected (within reason of course).
The code adds these "other players" to the game on the current player's client so they can see the other players, interact with them, and see the names of the other players over their heads.
Right now when you change your name using the name box, you see your own name over your head as expected.
If you add another client, a new player enters the game with a random name over their head as expected.
With two clients, if you or the other player changes their name, it updates on both screens as expected.
However, with three or more clients the overhead name functionality breaks and becomes buggy.
The game is able to add as many players that there are clients connected (within reason of course).
The code adds these "other players" to the game on the current player's client so they can see the other players, interact with them, and see the names of the other players over their heads.
Right now when you change your name using the name box, you see your own name over your head as expected.
If you add another client, a new player enters the game with a random name over their head as expected.
With two clients, if you or the other player changes their name, it updates on both screens as expected.
However, with three or more clients the overhead name functionality breaks and becomes buggy.
A video below shows the bug in action:
https://user-images.githubusercontent.com/13829168/103673529-4d1bc200-4f43-11eb-9f11-45e3e55e6f6a.mp4