Sdkbox js documentation to cocos creator user


so i’m trying to follow this tutorial and integrate gpg into my game but since im using cocos i dont really know what to do with this am i supposed to make a component called gpg.GameServices.Builder and put these functions inside of it or what exactly ?

.SetOnAuthActionStarted( function( result ) {
                // Auth started callback
            })
            .SetOnAuthActionFinished( function( result ) {
                // Auth finished callback
            })
            .SetLogging( gpg.LogLevel.INFO )    // Set Logging level
            .EnableSnapshots()                  // Enable Snapshot (Saved Game) functionailty
            .Create( function( game_services ) {
                // 8
            } );

We should also ask @yinjimmy to help you with this too.

1 Like

its kind of same here i was just asking for an explanation other post im asking for a sample code in cocos creator so atleast i can try on my own

Just answered in the other post with my current and working code snippet.

Hope this helps.

1 Like

thanks so much

there is a example for cocos creator

1 Like

this is exactly what i needed couldn’t find it anywhere though maybe it should be here?

I have added creator demo link to plugins doc. For example http://docs.sdkbox.com/en/plugins/googleplay/#sample-project .

1 Like

awesome man thanks

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.