Examples for CocosCreator

Hi, I want integrate SDKBOX into Cocos Creator Project. Are there some example how to implement it ?.

Hey @magicgamestudios

There’s no samples support for cocos creator as of now.
We will update you once we have support for it. :smile:

Best,
Pabitra

The steps that I follow to use SDKBOX are:

  1. read js integration of SDKBOX plugin ( example admob)
  2. in ADMOB add mediaplayerFramework and gamecontrol
  3. in Cocos Creator js you use something like this

if ( cc.sys.isMobile) {
console.log(“Entro aquí porque es nativo”);
sdkbox.PluginAdMob.init();
sdkbox.PluginAdMob.cache(“home”);
sdkbox.PluginAdMob.show(“home”);
}

This piece of code will only executed if is a native platform

5 Likes