ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
##  墨雪SDK使用说明 ## 用 git clone 项目到本地 http://git.mosnowgame.com/open/moosnowSdk ##  不会 git 的同学 点击下载压缩包   ![](https://liteplay-1253992229.cos.ap-guangzhou.myqcloud.com/SDK/guide/sdk_guide.png) ##  laya使用 将文件moosnow.conf.js、moosnow.platform.sdk.js 拷贝到bin目录 ![](https://liteplay-1253992229.cos.ap-guangzhou.myqcloud.com/SDK/guide/sdk_guide_laya.png?v=2.0.0) 在bin/index.js的文件最后引入文件 ```js  loadLib("moosnowSdk/moosnow.conf.js") loadLib("moosnowSdk/moosnow.platform.sdk.js") ``` ##  Cocos Creator 使用方式 ### 第一步 导入为插件 ![](https://img.kancloud.cn/76/31/7631b80a7c8655156c28b3688ddfd3d8_1920x997.png) ### 第二步 构建发布之后 ![](https://img.kancloud.cn/bc/82/bc8260b08a07d0bbd5328ad70730fb3b_1920x1041.png) ### 在game.js中引入 阿拉丁文件 ``` require('./utils/ald-game'); ``` ## 增加SDK链接说明,防止侵权 ![](https://img.kancloud.cn/12/40/1240c663ca0b6fd03f9955eb5814b6a6_625x294.png) ``` 使用开源SDK https://github.com/changshazhou/MiniGameAllPlatformSDK CP的游戏 只写这个 ``` # SDK配置 moosnow.conf.js (这里的参数都只是示例,请配置成你的真实参数) ``` //url 新版本可不填写,会指向默认值,填写了会使用填写的值, window.moosnowConfig = { debug: "wx",//pc时的调试版本 仅仅用来访问接口数据 wx: { //微信平台 bannerId: "adunit-e51b3123060eec9e", //请填写你自己的APP banner id videoId: "adunit-a322f5ee40076372", //请填写你自己的APP video id interId: "adunit-7c61767905a3940a", //请填写你自己的APP inter id nativeId: "", moosnowAppId: "wx840e2e246968f224", version: "1.0.0" }, oppo: { //OPPO平台 bannerId: "168776", videoId: "168781", interId: "168777", nativeId: ["168779", "168780"], gameBannerId: ["320097"],    //横幅广告 gamePortalId: ["320096"],   //九宫格广告 moosnowAppId: "30251588", version: "1.0.0" }, vivo: { bannerId: "aa9a8f1e5403435fa51ec680dbbf0da2", videoId: "c8bf3259afd64e389e42f1b67e21e005", interId: "168777", nativeId: ["7d595c09da994cc58c02217f43ebdd40", "010b436a80974dd6b3eafffc6c94b974"], moosnowAppId: "100006157", version: "1.1.0" }, qq: { //手Q平台 bannerId: "168776", videoId: "168781", interId: "168777", nativeId: "", boxId: "", //qq游戏特有的广告 moosnowAppId: "30251588", version: "1.0.0" }, bd: { //百度平台 bannerId: "168776", videoId: "168781", interId: "168777", nativeId: "", moosnowAppId: "30251588", version: "1.0.0" }, byte: { //字节跳动-包含头条、抖音等 bannerId: "168776", videoId: "168781", interId: "168777", nativeId: "", moosnowAppId: "30251588", version: "1.0.0", } } ```