Networking with the multiplayer extension
Here we come to the undoubtedly most popular aspect of game design. This is of course multiplayer gaming. In this project recipe, we're going to work with AndEngine's multiplayer extension in order to create a fully functional client and server directly onto the mobile device. Once we cover the range of classes and features that this extension includes to make network programming easier, you will be able to take your online gaming ideas and turn them into reality!
Getting ready
Creating a multiplayer game can require quite a few components in order to satisfy the readability of the project.
Note
Refer to the project named MultiplayerExtensionExample
in the code bundle.
For this reason, we're going to separate these different components into five classes.
Create a new Android project, naming it MultiplayerExtensionExample
. Once the project is ready to go, create four new class files with the following names:
MultiplayerExtensionExample.java
: TheBaseGameActivity...