Introduction

If you had any Multiplayer plugins (Game Center and/or Google Play Games) enabled in your CocoonJS project you can migrate them it using the Cocoon Google Play Games Multiplayer and the Game Center Multiplayer plugins.

Installation

The Multiplayer plugins will be migrated along with your application configuration when your projects are automatically migrated to the new Cocoon cloud so you should have all the plugins installed in the new Cocoon cloud already. To check if everything is correct go to the old CocoonJS cloud and check if you had the Multiplayer Plugins plugin enabled.

Screen Shot 2016-01-19 at 13.32.18

Now go to the new Cloud and check that the enabled Multiplayer plugins have been correctly migrated to the new Cocoon configuration.

Screen Shot 2016-01-19 at 13.46.20

Important: Check that the Google Play Games Social and the Game Center Social plugins are also installed as they are a dependency for the Multiplayer Plugins.

If the Multiplayer plugins are installed the application is ready to be compiled. Before compiling an APK or a Developer app check your integration in the following step.

Parameters

Game Center Multiplayer

This plugins doesn’t need any parameters.

Google Play Game Multiplayer

The Google Play Games Multiplayer plugin requires an APP_ID parameter in the new cloud. This parameter should have been set automatically in the migration process but just in case check that is the same as the on in the old CocoonJS cloud. The Google Play Games Multiplayer APP_ID parameter was the same as the Google Play Games Social plugin so you have too look for it in the Google Play Games Social configuration.

Screen Shot 2016-01-19 at 13.28.32

Important: Check that the Google Play Games Social plugin APP_ID has also been correctly setup as it is a dependent plugin and both use the same APP_ID.

Screen Shot 2016-01-19 at 13.46.20

Integration

The old CocoonJS Multiplayer plugins have been recoded in the the new Cocoon so the API is not exactly the same but we really think it is for good. We have tried to make a simpler and easier to integrate API so the changes in your application code shouldn’t be difficult to implement.

Check the Multiplayer plugins guides to see what modifications you should made in your code to get the new Cocoon Google Play Games and Game Center Multiplayer plugins working:

googleplaygames_buttongamecenter_button