Game Development Reference
In-Depth Information
How it works
The whole section was about using SpriteKit as a way to add game assets and as a part of
multiplayer, the players were assigned as blue and red. The working part of the node addi-
tion on GameScene has already been explained in Chapter 11 , Getting Started with Multi-
player Games , and as a result of the outcome of these additions, the game looks like this on
both the devices:
In the multiplayer part, when the user presses the Done button, the connection is estab-
lished and both the players are connected. Also, when the user presses the Done button,
names have been assigned to the players as blue and red as shown in the following image
for both the devices. These labels are on two different devices and will animate on the al-
location as well:
Search WWH ::




Custom Search