Game Development Reference
In-Depth Information
How it works...
In the preceding setup we used the Multipeer Connectivity framework for setting up a
structure of a multiplayer game with an instance of MCSession to be there in every
device that will be used to play the game. We also implemented all its delegate methods,
which informs the GameScene about the changing of game states and will also be used
for receiving data when incoming sections from some network packets are sent. For now, in
this section, we have put a label Tap to connect and on clicking the screen a session
is instantiated. Now build the project. First you will see the following launch screen and
then the initial GameScene with a label Tap to connect :
Search WWH ::




Custom Search