SDKBOX是一个强大的免费第三方集成工具,支持了各大游戏开发平台,例如:Cocos2d-x,Unity,虚幻引擎…等等。提供了几乎游戏开发会用到的功能集成,像是IAP服务(支援双平台),Google Play服务服务,广告服务(各大平台皆有支援:如AdMob,Unity Ads …等等),统计服务(Google Analytics,Flurry,Firebase …等等),还有云端设定,游戏计分平台(玩游戏以及游戏中心),推送硝化…


经常性失效的Cocos2d-x简易整合工具
由于Cocos2d-x将将代码原始码整合到专案中,在每一次的
- 欢迎来到超级服务城
- Cocos Creator教程:The Cannon 2,第2部分
- 奴才香蕉跳HTML5游戏为奇基塔和卑鄙的我3
- 如何利用妖精的力量来出售更多独立游戏的副本……
- MonoGame教程—第2部分:Jogo e Inicio do Projeto之路

iOS项目上的手动整合SDKBOX
一种。 下载cocos2d-x v3.x的捆绑文件
请到这个网页来下载,在#3手动安装中,选择下载捆绑文件(或者直接点我下载)
b。 将函式库加到专案
将Bundle中插件/ ios里面的sdkbox.framework以及PluginIAP.framework拉到专案中,并根据需要复制项目
C。 加入其他函式库
在专案设定中,将链接的框架和库加入以下
安全框架
StoreKit.framework
AdSupport.framework
SystemConfiguration.framework
d。 更改编译设定
- 取消Bitcode支持,可至专案设置的Build Settings中取消
- 取消运输安全,修改info.plist加入以下

- 将专案的功能中的应用内购买设置为启用
新增设定档案
- 加上sdkbox_config.json档案,放在专案资源资料夹资源底下
- 可按照平台,插件,加入设定资料,示例类别中,将成为iOS的iap中,加入了一个项目,该项目需要与App Store Connect中的物品ID设置相符合,示例中解锁故事即为Item ID,可按照需求纳入多种商品

初始化函式库
您可以透过呼叫静态函式来完成初始化的动作,建议在AppDelegate :: applicationDidFinishLaunching()或AppController:didFinishLaunchingWithOptions()

可设定监听器来处理各种处理状态
