Compare commits
No commits in common. "8dfd09c993fd5b0e4a1dcd1428d78e8aca56ca6e" and "e7184691eb58ed40ab8662faaddda13f43820610" have entirely different histories.
8dfd09c993
...
e7184691eb
File diff suppressed because it is too large
Load Diff
|
@ -186,6 +186,7 @@ export default class Block extends cc.Component {
|
||||||
this.initColor();
|
this.initColor();
|
||||||
this.initType();
|
this.initType();
|
||||||
this.initBlocks();
|
this.initBlocks();
|
||||||
|
|
||||||
if(this.type != BlockType.叠加块上){
|
if(this.type != BlockType.叠加块上){
|
||||||
this.node.on(cc.Node.EventType.TOUCH_START, this.touchStart, this);
|
this.node.on(cc.Node.EventType.TOUCH_START, this.touchStart, this);
|
||||||
this.node.on(cc.Node.EventType.TOUCH_MOVE, this.touchMove, this);
|
this.node.on(cc.Node.EventType.TOUCH_MOVE, this.touchMove, this);
|
||||||
|
@ -744,7 +745,7 @@ export default class Block extends cc.Component {
|
||||||
eliminate(){
|
eliminate(){
|
||||||
//锤子状态消失
|
//锤子状态消失
|
||||||
MapConroler._instance.pause = true;
|
MapConroler._instance.pause = true;
|
||||||
if(MapConroler._instance.hammer == true) MapConroler._instance.hammer = false;
|
MapConroler._instance.hammer = false;
|
||||||
//如果方块是有特殊状态,则特殊处理
|
//如果方块是有特殊状态,则特殊处理
|
||||||
if(this.type == BlockType.冻结块){
|
if(this.type == BlockType.冻结块){
|
||||||
this.node.getChildByName("freeze").getComponent("Freeze").reduce(2);
|
this.node.getChildByName("freeze").getComponent("Freeze").reduce(2);
|
||||||
|
@ -788,7 +789,7 @@ export default class Block extends cc.Component {
|
||||||
|
|
||||||
setVibrate(type, count){
|
setVibrate(type, count){
|
||||||
// return;
|
// return;
|
||||||
// console.log("最新:",cc.fx.GameConfig.GM_INFO.vibrateOpen,type);
|
console.log("最新:",cc.fx.GameConfig.GM_INFO.vibrateOpen,type);
|
||||||
if(!cc.fx.GameConfig.GM_INFO.vibrateOpen){
|
if(!cc.fx.GameConfig.GM_INFO.vibrateOpen){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1267,13 +1268,9 @@ export default class Block extends cc.Component {
|
||||||
|
|
||||||
}
|
}
|
||||||
if(this.type == BlockType.叠加块上 && this.moveStack == true){
|
if(this.type == BlockType.叠加块上 && this.moveStack == true){
|
||||||
if((this.stacking.x != 0 || this.stacking.y!= 0) && this.block_Info.node!= null){
|
if(this.stacking.x != 0 || this.stacking.y!= 0){
|
||||||
this.isTouch = false;
|
this.node.x = this.block_Info.node.x + this.stacking.x;
|
||||||
// this.node.x = this.block_Info.node.x + this.stacking.x;
|
this.node.y = this.block_Info.node.y + this.stacking.y;
|
||||||
// this.node.y = this.block_Info.node.y + this.stacking.y;
|
|
||||||
this.node.x = Math.round(this.block_Info.node.x + this.stacking.x);
|
|
||||||
this.node.y = Math.round(this.block_Info.node.y + this.stacking.y);
|
|
||||||
console.log("跟随移动",dt);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(this.block_Info){
|
if(this.block_Info){
|
||||||
|
|
|
@ -686,8 +686,6 @@ export default class GameManager extends cc.Component {
|
||||||
this.load1 = this.load2 = false;
|
this.load1 = this.load2 = false;
|
||||||
MiniGameSdk.API.shushu_Login();
|
MiniGameSdk.API.shushu_Login();
|
||||||
MiniGameSdk.API.yinli_Init();
|
MiniGameSdk.API.yinli_Init();
|
||||||
MiniGameSdk.API.yinli_Login();
|
|
||||||
cc.fx.GameTool.setWechatGameGroup(2);
|
|
||||||
this.startGame();
|
this.startGame();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,22 +36,12 @@ export default class NewClass extends cc.Component {
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
|
|
||||||
cc.internal.inputManager._maxTouches = 1
|
cc.internal.inputManager._maxTouches = 1
|
||||||
cc.debug.setDisplayStats(false);
|
|
||||||
let manager = cc.director.getCollisionManager();
|
let manager = cc.director.getCollisionManager();
|
||||||
manager.enabled = true;
|
manager.enabled = true;
|
||||||
this.setWX();
|
this.setWX();
|
||||||
|
|
||||||
// let version = cc.fx.GameTool.getWechatGameVersion();
|
cc.debug.setDisplayStats(false);
|
||||||
// if(version == "开发版" || version == "体验版"){
|
|
||||||
// cc.debug.setDisplayStats(false);
|
|
||||||
// }
|
|
||||||
// else if(version == "正式版"){
|
|
||||||
// cc.debug.setDisplayStats(false);
|
|
||||||
// }
|
|
||||||
// else{
|
|
||||||
// cc.debug.setDisplayStats(false);
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cc.tween(this.node1)
|
cc.tween(this.node1)
|
||||||
|
|
|
@ -1391,7 +1391,6 @@ export default class MapConroler extends cc.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
winLevel() {
|
winLevel() {
|
||||||
MiniGameSdk.API.showToast(cc.fx.GameConfig.GM_INFO.level);
|
|
||||||
if(this.node.parent.parent.getChildByName("Win").
|
if(this.node.parent.parent.getChildByName("Win").
|
||||||
getChildByName("nextBtn").getComponent("btnControl")._touch == false){
|
getChildByName("nextBtn").getComponent("btnControl")._touch == false){
|
||||||
return;
|
return;
|
||||||
|
@ -1409,6 +1408,9 @@ export default class MapConroler extends cc.Component {
|
||||||
}, 500);
|
}, 500);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
else if (cc.fx.GameConfig.GM_INFO.level == 249) {
|
||||||
|
MiniGameSdk.API.showToast("每周更新,敬请期待!");
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
// console.log("下一关");
|
// console.log("下一关");
|
||||||
if (this.new_mode == 3) {
|
if (this.new_mode == 3) {
|
||||||
|
@ -1559,10 +1561,11 @@ export default class MapConroler extends cc.Component {
|
||||||
|
|
||||||
//判断游戏失败
|
//判断游戏失败
|
||||||
failLevel(type) {
|
failLevel(type) {
|
||||||
|
this.stopTimeCutDown();
|
||||||
if (this.gameOver == true || this.gameWin == true) {
|
if (this.gameOver == true || this.gameWin == true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.stopTimeCutDown();
|
|
||||||
let time = 0;
|
let time = 0;
|
||||||
this.gameOver = true;
|
this.gameOver = true;
|
||||||
if (type == "boom") {
|
if (type == "boom") {
|
||||||
|
@ -1667,7 +1670,7 @@ export default class MapConroler extends cc.Component {
|
||||||
//使用时间道具
|
//使用时间道具
|
||||||
useTimeProp() {
|
useTimeProp() {
|
||||||
if (this.node.parent.getChildByName("Ice").active == true || this.hammer == true
|
if (this.node.parent.getChildByName("Ice").active == true || this.hammer == true
|
||||||
|| this.magicMask.active == true || this.timeNumber <= 1 || this.gameOver || this.gameWin) {
|
|| this.magicMask.active == true || this.timeNumber <= 1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let freezeBtn = this.node.parent.getChildByName("Bottom").getChildByName("timeBtn");
|
let freezeBtn = this.node.parent.getChildByName("Bottom").getChildByName("timeBtn");
|
||||||
|
@ -1796,7 +1799,7 @@ export default class MapConroler extends cc.Component {
|
||||||
//使用锤子道具
|
//使用锤子道具
|
||||||
useHammer() {
|
useHammer() {
|
||||||
if (this.node.parent.getChildByName("Ice").active == true || this.hammer == true
|
if (this.node.parent.getChildByName("Ice").active == true || this.hammer == true
|
||||||
|| this.magicMask.active == true || this.timeNumber <= 1 || this.gameOver || this.gameWin) {
|
|| this.magicMask.active == true || this.timeNumber <= 1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let hammerBtn = this.node.parent.getChildByName("Bottom").getChildByName("destroyBtn");
|
let hammerBtn = this.node.parent.getChildByName("Bottom").getChildByName("destroyBtn");
|
||||||
|
@ -1896,7 +1899,7 @@ export default class MapConroler extends cc.Component {
|
||||||
//使用魔法棒随机消除两个方块
|
//使用魔法棒随机消除两个方块
|
||||||
useMagic() {
|
useMagic() {
|
||||||
if (this.node.parent.getChildByName("Ice").active == true || this.hammer == true
|
if (this.node.parent.getChildByName("Ice").active == true || this.hammer == true
|
||||||
|| this.magicMask.active == true || this.timeNumber <= 1 || this.gameOver || this.gameWin) {
|
|| this.magicMask.active == true || this.timeNumber <= 1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let magicBtn = this.node.parent.getChildByName("Bottom").getChildByName("magicBtn");
|
let magicBtn = this.node.parent.getChildByName("Bottom").getChildByName("magicBtn");
|
||||||
|
@ -1930,19 +1933,16 @@ export default class MapConroler extends cc.Component {
|
||||||
this.setPropNum();
|
this.setPropNum();
|
||||||
// this.magicLabel.string = cc.fx.GameConfig.GM_INFO.magicAmount.toString();
|
// this.magicLabel.string = cc.fx.GameConfig.GM_INFO.magicAmount.toString();
|
||||||
let propInfo = cc.fx.StorageMessage.getStorage("prop");
|
let propInfo = cc.fx.StorageMessage.getStorage("prop");
|
||||||
if(propInfo){
|
propInfo.magicAmount = cc.fx.GameConfig.GM_INFO.magicAmount;
|
||||||
propInfo.magicAmount = cc.fx.GameConfig.GM_INFO.magicAmount;
|
propInfo.timestamp = timestamp;
|
||||||
propInfo.timestamp = timestamp;
|
cc.fx.StorageMessage.setStorage("prop", propInfo);
|
||||||
cc.fx.StorageMessage.setStorage("prop", propInfo);
|
cc.fx.GameTool.setUserProp(2003, cc.fx.GameConfig.GM_INFO.magicAmount, (data) => {
|
||||||
cc.fx.GameTool.setUserProp(2003, cc.fx.GameConfig.GM_INFO.magicAmount, (data) => {
|
})
|
||||||
})
|
let data = {
|
||||||
let data = {
|
id: "2003",
|
||||||
id: "2003",
|
num: -1
|
||||||
num: -1
|
|
||||||
}
|
|
||||||
cc.fx.GameTool.shushu_Track("resource_cost", data);
|
|
||||||
}
|
}
|
||||||
|
cc.fx.GameTool.shushu_Track("resource_cost", data);
|
||||||
let nomalArray = [];
|
let nomalArray = [];
|
||||||
// this.magicBtn.node.active = false;
|
// this.magicBtn.node.active = false;
|
||||||
for (let i = 0; i < this.blocks.length; i++) {
|
for (let i = 0; i < this.blocks.length; i++) {
|
||||||
|
@ -1957,7 +1957,7 @@ export default class MapConroler extends cc.Component {
|
||||||
if (this.blocks[i].getComponent("Block").block_Info.node) {
|
if (this.blocks[i].getComponent("Block").block_Info.node) {
|
||||||
nomalArray.push(this.blocks[i].getComponent("Block").block_Info.node);
|
nomalArray.push(this.blocks[i].getComponent("Block").block_Info.node);
|
||||||
}
|
}
|
||||||
// else nomalArray.push(this.blocks[i]);
|
else nomalArray.push(this.blocks[i]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
nomalArray.push(this.blocks[i]);
|
nomalArray.push(this.blocks[i]);
|
||||||
|
@ -1970,68 +1970,67 @@ export default class MapConroler extends cc.Component {
|
||||||
if (nomalArray[0].getComponent("Block").type == 1 || nomalArray[0].getComponent("Block").type == 9) {
|
if (nomalArray[0].getComponent("Block").type == 1 || nomalArray[0].getComponent("Block").type == 9) {
|
||||||
time = 200;
|
time = 200;
|
||||||
}
|
}
|
||||||
nomalArray[1].getComponent("Block").eliminate();
|
if (time > 0) {
|
||||||
// if (time > 0) {
|
setTimeout(() => {
|
||||||
// setTimeout(() => {
|
nomalArray[1].getComponent("Block").eliminate();
|
||||||
// nomalArray[1].getComponent("Block").eliminate();
|
}, time);
|
||||||
// }, time);
|
return;
|
||||||
// return;
|
}
|
||||||
// }
|
else {
|
||||||
// else {
|
nomalArray[1].getComponent("Block").eliminate();
|
||||||
// nomalArray[1].getComponent("Block").eliminate();
|
return;
|
||||||
// return;
|
}
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
// else if (nomalArray.length == 1) {
|
else if (nomalArray.length == 1) {
|
||||||
// nomalArray[0].getComponent("Block").eliminate();
|
nomalArray[0].getComponent("Block").eliminate();
|
||||||
// let time = 0;
|
let time = 0;
|
||||||
// if (nomalArray[0].getComponent("Block").type == 1 || nomalArray[0].getComponent("Block").type == 9) {
|
if (nomalArray[0].getComponent("Block").type == 1 || nomalArray[0].getComponent("Block").type == 9) {
|
||||||
// time = 200;
|
time = 200;
|
||||||
// }
|
}
|
||||||
// setTimeout(() => {
|
setTimeout(() => {
|
||||||
// if (this.freezeArray.length == 0 && this.loackArray.length == 0) {
|
if (this.freezeArray.length == 0 && this.loackArray.length == 0) {
|
||||||
// // console.log("只剩下一个块道具使用完毕");
|
// console.log("只剩下一个块道具使用完毕");
|
||||||
// }
|
}
|
||||||
// else {
|
else {
|
||||||
// if (this.loackArray.length != 0) {
|
if (this.loackArray.length != 0) {
|
||||||
// // console.log("消除一个普通块后,消除一个带锁块");
|
// console.log("消除一个普通块后,消除一个带锁块");
|
||||||
// this.loackArray[0].getComponent("Block").eliminate();
|
this.loackArray[0].getComponent("Block").eliminate();
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
// else if (this.freezeArray.length != 0) {
|
else if (this.freezeArray.length != 0) {
|
||||||
// // console.log("消除一个普通块后,消除一个冻结块");
|
// console.log("消除一个普通块后,消除一个冻结块");
|
||||||
// this.freezeArray[0].getComponent("Block").eliminate();
|
this.freezeArray[0].getComponent("Block").eliminate();
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }, 200 + time);
|
}, 200 + time);
|
||||||
// }
|
}
|
||||||
// else {
|
else {
|
||||||
// let count = 2;
|
let count = 2;
|
||||||
// if (this.loackArray.length != 0) {
|
if (this.loackArray.length != 0) {
|
||||||
// for (let i = 0; i < this.loackArray.length; i++) {
|
for (let i = 0; i < this.loackArray.length; i++) {
|
||||||
// // console.log("没有普通快,魔法消除一个带锁块");
|
// console.log("没有普通快,魔法消除一个带锁块");
|
||||||
// this.loackArray[i].getComponent("Block").eliminate();
|
this.loackArray[i].getComponent("Block").eliminate();
|
||||||
// count -= 1;
|
count -= 1;
|
||||||
// if (count == 0) {
|
if (count == 0) {
|
||||||
// break;
|
break;
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|
||||||
// setTimeout(() => {
|
setTimeout(() => {
|
||||||
// if (count != 0) {
|
if (count != 0) {
|
||||||
// for (let i = 0; i < this.freezeArray.length; i++) {
|
for (let i = 0; i < this.freezeArray.length; i++) {
|
||||||
// // console.log("没有普通快,魔法消除一个冻结块");
|
// console.log("没有普通快,魔法消除一个冻结块");
|
||||||
// // this.freezeArray[i].getComponent("Block").eliminate();
|
// this.freezeArray[i].getComponent("Block").eliminate();
|
||||||
// count -= 1;
|
count -= 1;
|
||||||
// if (count == 0) {
|
if (count == 0) {
|
||||||
// break;
|
break;
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }, 100);
|
}, 100);
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -297,14 +297,14 @@ export default class SceneManager extends cc.Component {
|
||||||
propWindow.getChildByName("magic").active = false;
|
propWindow.getChildByName("magic").active = false;
|
||||||
propWindow.getChildByName("buy_Btn").getComponent("btnControl").setTouch(true);
|
propWindow.getChildByName("buy_Btn").getComponent("btnControl").setTouch(true);
|
||||||
propWindow.getChildByName(name).active = true;
|
propWindow.getChildByName(name).active = true;
|
||||||
// if(name == "hammer"){
|
if(name == "hammer"){
|
||||||
// propWindow.getChildByName("buy_Btn").getChildByName("hammer").active = true;
|
propWindow.getChildByName("buy_Btn").getChildByName("hammer").active = true;
|
||||||
// propWindow.getChildByName("buy_Btn").getChildByName("nomal").active = false;
|
propWindow.getChildByName("buy_Btn").getChildByName("nomal").active = false;
|
||||||
// }
|
}
|
||||||
// else{
|
else{
|
||||||
// propWindow.getChildByName("buy_Btn").getChildByName("hammer").active = false;
|
propWindow.getChildByName("buy_Btn").getChildByName("hammer").active = false;
|
||||||
// propWindow.getChildByName("buy_Btn").getChildByName("nomal").active = true;
|
propWindow.getChildByName("buy_Btn").getChildByName("nomal").active = true;
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
clickBtn() {
|
clickBtn() {
|
||||||
|
|
|
@ -1260,12 +1260,6 @@ export namespace MiniGameSdk {
|
||||||
maxRetries: 3, // 网络请求失败时的重试次数,1 表示不重试。默认值是 3
|
maxRetries: 3, // 网络请求失败时的重试次数,1 表示不重试。默认值是 3
|
||||||
enablePersistence: true, // 是否使用本地缓存,主实例默认为 true,子实例默认为 false
|
enablePersistence: true, // 是否使用本地缓存,主实例默认为 true,子实例默认为 false
|
||||||
asyncPersistence: false, // 是否使用异步存储,默认为 false
|
asyncPersistence: false, // 是否使用异步存储,默认为 false
|
||||||
enable_sync_attribution: true, // 是否开启渠道归因,默认为 false
|
|
||||||
autoTrack: {
|
|
||||||
appLaunch: true, // 自动采集 $MPLaunch
|
|
||||||
appShow: false, // 自动采集 $MPShow
|
|
||||||
appHide: false, // 自动采集 $MPHide
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
API._ge = new GravityAnalyticsAPI(configYinli);
|
API._ge = new GravityAnalyticsAPI(configYinli);
|
||||||
API._ge .setupAndStart();
|
API._ge .setupAndStart();
|
||||||
|
@ -1292,32 +1286,6 @@ export namespace MiniGameSdk {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static yinli_Register(){
|
|
||||||
if (typeof wx!== 'undefined' && wx!== null) {
|
|
||||||
API._ge.registerEvent();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 上报付费事件
|
|
||||||
* @param payAmount 付费金额 单位为分
|
|
||||||
* @param payType 货币类型 按照国际标准组织ISO 4217中规范的3位字母,例如CNY人民币、USD美金等
|
|
||||||
* @param orderId 订单号
|
|
||||||
* @param payReason 付费原因 例如:购买钻石、办理月卡
|
|
||||||
* @param payMethod 付费方式 例如:支付宝、微信、银联等
|
|
||||||
*/
|
|
||||||
static yinli_Pay(payAmount,orderId,payReason){
|
|
||||||
if (typeof wx!== 'undefined' && wx!== null) {
|
|
||||||
API._ge.payEvent(payAmount, "CNY", orderId, payReason, "微信");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static yinli_Login(){
|
|
||||||
if (typeof wx!== 'undefined' && wx!== null) {
|
|
||||||
API._ge.loginEvent();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -177,7 +177,6 @@ export default class AudioManager extends cc.Component {
|
||||||
return this.play(this[name], false, callback, this.mEffectSwitch);
|
return this.play(this[name], false, callback, this.mEffectSwitch);
|
||||||
}
|
}
|
||||||
playMusic(key, callback, loop) {
|
playMusic(key, callback, loop) {
|
||||||
console.log("音频开关________________________________________");
|
|
||||||
if (!cc.fx.GameConfig.GM_INFO.musicOpen) {
|
if (!cc.fx.GameConfig.GM_INFO.musicOpen) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -664,8 +664,6 @@ var GameTool = {
|
||||||
}
|
}
|
||||||
console.log("____________即将上传Shop_buy",buyData);
|
console.log("____________即将上传Shop_buy",buyData);
|
||||||
cc.fx.GameTool.shushu_Track("shop_buy",buyData);
|
cc.fx.GameTool.shushu_Track("shop_buy",buyData);
|
||||||
|
|
||||||
|
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -898,7 +896,7 @@ var GameTool = {
|
||||||
removeAllLister:function () {
|
removeAllLister:function () {
|
||||||
|
|
||||||
},
|
},
|
||||||
//上报数据
|
|
||||||
shushu_Track: function(name,data){
|
shushu_Track: function(name,data){
|
||||||
let eventData = {}
|
let eventData = {}
|
||||||
switch(name){
|
switch(name){
|
||||||
|
@ -985,7 +983,6 @@ var GameTool = {
|
||||||
MiniGameSdk.API.shushu_Track(name, eventData);
|
MiniGameSdk.API.shushu_Track(name, eventData);
|
||||||
},
|
},
|
||||||
|
|
||||||
//获取微信小游戏版本号
|
|
||||||
getWechatGameVersion: function(){
|
getWechatGameVersion: function(){
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
if (typeof wx!== 'undefined' && wx!== null) {
|
if (typeof wx!== 'undefined' && wx!== null) {
|
||||||
|
@ -1005,39 +1002,5 @@ var GameTool = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
//微信小游戏根据openId将用户分组,有可能会两分,三分,六分
|
|
||||||
setWechatGameGroup: function(type: 2 | 3 | 6) {
|
|
||||||
//@ts-ignore
|
|
||||||
if (typeof wx!== 'undefined' && wx!== null) {
|
|
||||||
//@ts-ignore
|
|
||||||
if(cc.fx.GameConfig.GM_INFO.openid) {
|
|
||||||
const openid = cc.fx.GameConfig.GM_INFO.openid;
|
|
||||||
const lastChar = openid[openid.length - 1];
|
|
||||||
const charCode = lastChar.charCodeAt(0);
|
|
||||||
let groupNumber: number;
|
|
||||||
console.log("openid尾数____________________:",charCode);
|
|
||||||
|
|
||||||
// 根据 type 参数计算分组编号
|
|
||||||
switch(type) {
|
|
||||||
case 2:
|
|
||||||
groupNumber = charCode % 2;
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
groupNumber = charCode % 3;
|
|
||||||
break;
|
|
||||||
case 6:
|
|
||||||
groupNumber = charCode % 6;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
console.log('type 参数值无效,必须为 2、3 或 6');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
console.log("type____________________:",type);
|
|
||||||
console.log("分组编号____________________:",groupNumber);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
};
|
||||||
export { GameTool };
|
export { GameTool };
|
|
@ -55,7 +55,6 @@ export default class Boom extends cc.Component {
|
||||||
NumberToImage.numberToImageNodes(this.time,20,8,"lock_",this.node.getChildByName("time"),false);
|
NumberToImage.numberToImageNodes(this.time,20,8,"lock_",this.node.getChildByName("time"),false);
|
||||||
if(this.time <= 0){
|
if(this.time <= 0){
|
||||||
this.unschedule(this.updateTime);
|
this.unschedule(this.updateTime);
|
||||||
MapConroler._instance.failLevel("boom");
|
|
||||||
this.node.getChildByName("zhandan").active = true;
|
this.node.getChildByName("zhandan").active = true;
|
||||||
this.node.getChildByName("bg").active = false;
|
this.node.getChildByName("bg").active = false;
|
||||||
const skeleton = this.node.getChildByName("zhandan").getComponent(sp.Skeleton);
|
const skeleton = this.node.getChildByName("zhandan").getComponent(sp.Skeleton);
|
||||||
|
@ -65,7 +64,7 @@ export default class Boom extends cc.Component {
|
||||||
// 动画播放完成后销毁节点
|
// 动画播放完成后销毁节点
|
||||||
this.node.destroy();
|
this.node.destroy();
|
||||||
});
|
});
|
||||||
|
MapConroler._instance.failLevel("boom");
|
||||||
// this.node.destroy();
|
// this.node.destroy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,7 @@ export default class Freeze extends cc.Component {
|
||||||
this.node.parent.getComponent("Block").resetFreeze();
|
this.node.parent.getComponent("Block").resetFreeze();
|
||||||
this.node.destroy();
|
this.node.destroy();
|
||||||
this.node.removeFromParent();
|
this.node.removeFromParent();
|
||||||
}, 500);
|
}, 600);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,388 +0,0 @@
|
||||||
{
|
|
||||||
"LEVEL_INFO": [
|
|
||||||
{
|
|
||||||
"id": "220",
|
|
||||||
"map": [
|
|
||||||
9,
|
|
||||||
12
|
|
||||||
],
|
|
||||||
"time": 120,
|
|
||||||
"gap": [
|
|
||||||
{
|
|
||||||
"x": 3,
|
|
||||||
"y": 1,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"x": 4,
|
|
||||||
"y": 1,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"x": 5,
|
|
||||||
"y": 1,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"x": 3,
|
|
||||||
"y": 10,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"x": 4,
|
|
||||||
"y": 10,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"x": 5,
|
|
||||||
"y": 10,
|
|
||||||
"z": 0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"BLOCK_INFO": [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"block": 23,
|
|
||||||
"color": 1,
|
|
||||||
"type": 0,
|
|
||||||
"position": {
|
|
||||||
"x": 420,
|
|
||||||
"y": -240,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": 210
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 23,
|
|
||||||
"color": 1,
|
|
||||||
"type": 0,
|
|
||||||
"position": {
|
|
||||||
"x": 420,
|
|
||||||
"y": 0,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": 220
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 23,
|
|
||||||
"color": 1,
|
|
||||||
"type": 0,
|
|
||||||
"position": {
|
|
||||||
"x": -300,
|
|
||||||
"y": 0,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": 230
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 23,
|
|
||||||
"color": 1,
|
|
||||||
"type": 0,
|
|
||||||
"position": {
|
|
||||||
"x": -300,
|
|
||||||
"y": -240,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": 240
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 2,
|
|
||||||
"color": 5,
|
|
||||||
"type": 0,
|
|
||||||
"position": {
|
|
||||||
"x": 300,
|
|
||||||
"y": -600,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": 250
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 2,
|
|
||||||
"color": 5,
|
|
||||||
"type": 0,
|
|
||||||
"position": {
|
|
||||||
"x": -300,
|
|
||||||
"y": 360,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": 260
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 10,
|
|
||||||
"color": 5,
|
|
||||||
"type": 0,
|
|
||||||
"position": {
|
|
||||||
"x": 60,
|
|
||||||
"y": 120,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": 270
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 2,
|
|
||||||
"color": 7,
|
|
||||||
"type": 0,
|
|
||||||
"position": {
|
|
||||||
"x": -180,
|
|
||||||
"y": 360,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": 280
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 5,
|
|
||||||
"color": 3,
|
|
||||||
"type": 9,
|
|
||||||
"position": {
|
|
||||||
"x": 60,
|
|
||||||
"y": -240,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"adhesiveTime": 2,
|
|
||||||
"id": 290
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 2,
|
|
||||||
"color": 3,
|
|
||||||
"type": 9,
|
|
||||||
"position": {
|
|
||||||
"x": 180,
|
|
||||||
"y": -240,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"adhesiveTime": 1,
|
|
||||||
"id": 300
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 1,
|
|
||||||
"color": 3,
|
|
||||||
"type": 9,
|
|
||||||
"position": {
|
|
||||||
"x": -60,
|
|
||||||
"y": -480,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"adhesiveTime": 2,
|
|
||||||
"id": 310
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 1,
|
|
||||||
"color": 3,
|
|
||||||
"type": 9,
|
|
||||||
"position": {
|
|
||||||
"x": -180,
|
|
||||||
"y": -600,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"adhesiveTime": 1,
|
|
||||||
"id": 320
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 13,
|
|
||||||
"color": 3,
|
|
||||||
"type": 7,
|
|
||||||
"position": {
|
|
||||||
"x": -60,
|
|
||||||
"y": 120,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": 330
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 2,
|
|
||||||
"color": 10,
|
|
||||||
"type": 2,
|
|
||||||
"position": {
|
|
||||||
"x": 300,
|
|
||||||
"y": 360,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": 340
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 0,
|
|
||||||
"color": 10,
|
|
||||||
"type": 2,
|
|
||||||
"position": {
|
|
||||||
"x": 60,
|
|
||||||
"y": -360,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": 350
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 0,
|
|
||||||
"color": 8,
|
|
||||||
"type": 2,
|
|
||||||
"position": {
|
|
||||||
"x": 60,
|
|
||||||
"y": -480,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": 360
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 2,
|
|
||||||
"color": 1,
|
|
||||||
"type": 2,
|
|
||||||
"position": {
|
|
||||||
"x": 420,
|
|
||||||
"y": 360,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": 370
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 3,
|
|
||||||
"color": 8,
|
|
||||||
"type": 3,
|
|
||||||
"position": {
|
|
||||||
"x": 180,
|
|
||||||
"y": 0,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"lockTime": 4,
|
|
||||||
"id": 380
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 2,
|
|
||||||
"color": 8,
|
|
||||||
"type": 0,
|
|
||||||
"position": {
|
|
||||||
"x": 420,
|
|
||||||
"y": -600,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": 390
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 2,
|
|
||||||
"color": 9,
|
|
||||||
"type": 6,
|
|
||||||
"position": {
|
|
||||||
"x": -180,
|
|
||||||
"y": -120,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"boomTime": 20,
|
|
||||||
"id": 400
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 2,
|
|
||||||
"color": 2,
|
|
||||||
"type": 6,
|
|
||||||
"position": {
|
|
||||||
"x": 300,
|
|
||||||
"y": -120,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"boomTime": 15,
|
|
||||||
"id": 410
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"WALL_INFO": [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"id": 1,
|
|
||||||
"num": 11,
|
|
||||||
"color": 10,
|
|
||||||
"special": 0,
|
|
||||||
"length": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 2,
|
|
||||||
"num": 13,
|
|
||||||
"color": 1,
|
|
||||||
"special": 0,
|
|
||||||
"length": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 3,
|
|
||||||
"num": 10,
|
|
||||||
"color": 5,
|
|
||||||
"special": 0,
|
|
||||||
"length": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 4,
|
|
||||||
"num": 12,
|
|
||||||
"color": 5,
|
|
||||||
"special": 0,
|
|
||||||
"length": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 5,
|
|
||||||
"num": 24,
|
|
||||||
"color": 9,
|
|
||||||
"special": 0,
|
|
||||||
"length": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 6,
|
|
||||||
"num": 26,
|
|
||||||
"color": 9,
|
|
||||||
"special": 0,
|
|
||||||
"length": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 7,
|
|
||||||
"num": 1,
|
|
||||||
"color": 2,
|
|
||||||
"special": 0,
|
|
||||||
"length": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 8,
|
|
||||||
"num": 2,
|
|
||||||
"color": 2,
|
|
||||||
"special": 0,
|
|
||||||
"length": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 9,
|
|
||||||
"num": 29,
|
|
||||||
"color": 7,
|
|
||||||
"special": 0,
|
|
||||||
"length": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 10,
|
|
||||||
"num": 30,
|
|
||||||
"color": 7,
|
|
||||||
"special": 0,
|
|
||||||
"length": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 11,
|
|
||||||
"num": 6,
|
|
||||||
"color": 8,
|
|
||||||
"special": 0,
|
|
||||||
"length": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 12,
|
|
||||||
"num": 7,
|
|
||||||
"color": 8,
|
|
||||||
"special": 0,
|
|
||||||
"length": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 13,
|
|
||||||
"num": 34,
|
|
||||||
"color": 3,
|
|
||||||
"special": 0,
|
|
||||||
"length": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 14,
|
|
||||||
"num": 35,
|
|
||||||
"color": 3,
|
|
||||||
"special": 0,
|
|
||||||
"length": 0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "1.0.2",
|
|
||||||
"uuid": "c711910f-ab6a-48d5-90d6-90d1f95a862e",
|
|
||||||
"importer": "json",
|
|
||||||
"subMetas": {}
|
|
||||||
}
|
|
|
@ -6,20 +6,25 @@
|
||||||
9,
|
9,
|
||||||
12
|
12
|
||||||
],
|
],
|
||||||
"time": 220,
|
"time": 215,
|
||||||
"gap": [
|
"gap": [
|
||||||
{
|
{
|
||||||
"x": 1,
|
"x": 1,
|
||||||
"y": 10,
|
"y": 1,
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"x": 2,
|
|
||||||
"y": 10,
|
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 7,
|
"x": 7,
|
||||||
|
"y": 1,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"x": 1,
|
||||||
|
"y": 9,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"x": 2,
|
||||||
"y": 10,
|
"y": 10,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
|
@ -28,25 +33,20 @@
|
||||||
"y": 10,
|
"y": 10,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"x": 7,
|
||||||
|
"y": 10,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"x": 1,
|
"x": 1,
|
||||||
"y": 9,
|
"y": 10,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 7,
|
"x": 7,
|
||||||
"y": 9,
|
"y": 9,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
|
||||||
{
|
|
||||||
"x": 1,
|
|
||||||
"y": 1,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"x": 7,
|
|
||||||
"y": 1,
|
|
||||||
"z": 0
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -54,93 +54,27 @@
|
||||||
"BLOCK_INFO": [
|
"BLOCK_INFO": [
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"block": 2,
|
"block": 23,
|
||||||
"color": 2,
|
"color": 1,
|
||||||
"type": 0,
|
"type": 0,
|
||||||
"position": {
|
"position": {
|
||||||
"x": -180,
|
"x": -180,
|
||||||
"y": 240,
|
"y": -120,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"id": 210
|
"id": 210
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"block": 1,
|
"block": 23,
|
||||||
"color": 2,
|
"color": 1,
|
||||||
"type": 0,
|
"type": 0,
|
||||||
"position": {
|
"position": {
|
||||||
"x": 420,
|
"x": 300,
|
||||||
"y": -240,
|
"y": -120,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"id": 220
|
"id": 220
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"block": 22,
|
|
||||||
"color": 2,
|
|
||||||
"type": 0,
|
|
||||||
"position": {
|
|
||||||
"x": -180,
|
|
||||||
"y": -480,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": 230
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 2,
|
|
||||||
"color": 5,
|
|
||||||
"type": 0,
|
|
||||||
"position": {
|
|
||||||
"x": 300,
|
|
||||||
"y": 240,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": 240
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 1,
|
|
||||||
"color": 5,
|
|
||||||
"type": 0,
|
|
||||||
"position": {
|
|
||||||
"x": -180,
|
|
||||||
"y": -240,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": 250
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 21,
|
|
||||||
"color": 5,
|
|
||||||
"type": 0,
|
|
||||||
"position": {
|
|
||||||
"x": 300,
|
|
||||||
"y": -480,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": 260
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 2,
|
|
||||||
"color": 3,
|
|
||||||
"type": 0,
|
|
||||||
"position": {
|
|
||||||
"x": 180,
|
|
||||||
"y": -600,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": 270
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 2,
|
|
||||||
"color": 10,
|
|
||||||
"type": 0,
|
|
||||||
"position": {
|
|
||||||
"x": -60,
|
|
||||||
"y": -600,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": 280
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"block": 21,
|
"block": 21,
|
||||||
"color": 4,
|
"color": 4,
|
||||||
|
@ -150,7 +84,29 @@
|
||||||
"y": 0,
|
"y": 0,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"id": 290
|
"id": 230
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"block": 2,
|
||||||
|
"color": 10,
|
||||||
|
"type": 0,
|
||||||
|
"position": {
|
||||||
|
"x": -60,
|
||||||
|
"y": -600,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"id": 240
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"block": 2,
|
||||||
|
"color": 3,
|
||||||
|
"type": 0,
|
||||||
|
"position": {
|
||||||
|
"x": 180,
|
||||||
|
"y": -600,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"id": 250
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"block": 22,
|
"block": 22,
|
||||||
|
@ -161,48 +117,92 @@
|
||||||
"y": 0,
|
"y": 0,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
|
"id": 260
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"block": 21,
|
||||||
|
"color": 5,
|
||||||
|
"type": 0,
|
||||||
|
"position": {
|
||||||
|
"x": 300,
|
||||||
|
"y": -480,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"id": 270
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"block": 2,
|
||||||
|
"color": 5,
|
||||||
|
"type": 0,
|
||||||
|
"position": {
|
||||||
|
"x": 300,
|
||||||
|
"y": 240,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"id": 280
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"block": 1,
|
||||||
|
"color": 5,
|
||||||
|
"type": 0,
|
||||||
|
"position": {
|
||||||
|
"x": -180,
|
||||||
|
"y": -240,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"id": 290
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"block": 2,
|
||||||
|
"color": 2,
|
||||||
|
"type": 0,
|
||||||
|
"position": {
|
||||||
|
"x": -180,
|
||||||
|
"y": 240,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
"id": 300
|
"id": 300
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"block": 0,
|
"block": 22,
|
||||||
"color": 5,
|
"color": 2,
|
||||||
"type": 2,
|
"type": 0,
|
||||||
"position": {
|
"position": {
|
||||||
"x": -60,
|
"x": -180,
|
||||||
"y": 360,
|
"y": -480,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"id": 310
|
"id": 310
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"block": 0,
|
"block": 1,
|
||||||
"color": 2,
|
"color": 2,
|
||||||
"type": 2,
|
"type": 0,
|
||||||
"position": {
|
"position": {
|
||||||
"x": 180,
|
"x": 420,
|
||||||
"y": 360,
|
"y": -240,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"id": 320
|
"id": 320
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"block": 0,
|
"block": 0,
|
||||||
"color": 9,
|
"color": 2,
|
||||||
"type": 2,
|
"type": 2,
|
||||||
"position": {
|
"position": {
|
||||||
"x": -180,
|
"x": 60,
|
||||||
"y": 0,
|
"y": -480,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"id": 330
|
"id": 330
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"block": 0,
|
"block": 0,
|
||||||
"color": 1,
|
"color": 3,
|
||||||
"type": 2,
|
"type": 2,
|
||||||
"position": {
|
"position": {
|
||||||
"x": 300,
|
"x": -300,
|
||||||
"y": 0,
|
"y": -360,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"id": 340
|
"id": 340
|
||||||
|
@ -218,17 +218,6 @@
|
||||||
},
|
},
|
||||||
"id": 350
|
"id": 350
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"block": 0,
|
|
||||||
"color": 2,
|
|
||||||
"type": 2,
|
|
||||||
"position": {
|
|
||||||
"x": 60,
|
|
||||||
"y": -480,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": 360
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"block": 0,
|
"block": 0,
|
||||||
"color": 5,
|
"color": 5,
|
||||||
|
@ -238,7 +227,7 @@
|
||||||
"y": -600,
|
"y": -600,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"id": 370
|
"id": 360
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"block": 0,
|
"block": 0,
|
||||||
|
@ -249,52 +238,62 @@
|
||||||
"y": -480,
|
"y": -480,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
|
"id": 370
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"block": 0,
|
||||||
|
"color": 9,
|
||||||
|
"type": 2,
|
||||||
|
"position": {
|
||||||
|
"x": -180,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
"id": 380
|
"id": 380
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"block": 23,
|
"block": 0,
|
||||||
"color": 10,
|
"color": 5,
|
||||||
"type": 2,
|
"type": 2,
|
||||||
"position": {
|
"position": {
|
||||||
"x": 300,
|
"x": -60,
|
||||||
"y": -120,
|
"y": 360,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"id": 390
|
"id": 390
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"block": 23,
|
"block": 0,
|
||||||
"color": 10,
|
"color": 2,
|
||||||
"type": 2,
|
"type": 2,
|
||||||
"position": {
|
"position": {
|
||||||
"x": -180,
|
"x": 180,
|
||||||
"y": -120,
|
"y": 360,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"id": 400
|
"id": 400
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"block": 3,
|
"block": 0,
|
||||||
"color": 8,
|
"color": 1,
|
||||||
"type": 9,
|
"type": 2,
|
||||||
"position": {
|
"position": {
|
||||||
"x": 180,
|
"x": 300,
|
||||||
"y": 240,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"adhesiveTime": 2,
|
|
||||||
"id": 410
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": 2,
|
|
||||||
"color": 3,
|
|
||||||
"type": 9,
|
|
||||||
"position": {
|
|
||||||
"x": 60,
|
|
||||||
"y": 0,
|
"y": 0,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"adhesiveTime": 1,
|
"id": 410
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"block": 18,
|
||||||
|
"color": 6,
|
||||||
|
"type": 3,
|
||||||
|
"position": {
|
||||||
|
"x": 60,
|
||||||
|
"y": -360,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"lockTime": 8,
|
||||||
"id": 420
|
"id": 420
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -320,16 +319,28 @@
|
||||||
"id": 440
|
"id": 440
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"block": 18,
|
"block": 3,
|
||||||
"color": 6,
|
"color": 8,
|
||||||
"type": 3,
|
"type": 9,
|
||||||
"position": {
|
"position": {
|
||||||
"x": 60,
|
"x": 180,
|
||||||
"y": -360,
|
"y": 240,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"lockTime": 8,
|
"adhesiveTime": 2,
|
||||||
"id": 450
|
"id": 450
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"block": 2,
|
||||||
|
"color": 3,
|
||||||
|
"type": 9,
|
||||||
|
"position": {
|
||||||
|
"x": 60,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"adhesiveTime": 1,
|
||||||
|
"id": 460
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
@ -337,97 +348,95 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"num": 15,
|
|
||||||
"color": 6,
|
|
||||||
"special": 0,
|
|
||||||
"length": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 2,
|
|
||||||
"num": 17,
|
|
||||||
"color": 6,
|
|
||||||
"special": 0,
|
|
||||||
"length": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 3,
|
|
||||||
"num": 19,
|
|
||||||
"color": 6,
|
|
||||||
"special": 0,
|
|
||||||
"length": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 4,
|
|
||||||
"num": 5,
|
|
||||||
"color": 10,
|
|
||||||
"special": 0,
|
|
||||||
"length": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 5,
|
|
||||||
"num": 6,
|
|
||||||
"color": 10,
|
|
||||||
"special": 0,
|
|
||||||
"length": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 6,
|
|
||||||
"num": 3,
|
|
||||||
"color": 5,
|
|
||||||
"special": 2,
|
|
||||||
"length": 2,
|
|
||||||
"lock": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 7,
|
|
||||||
"num": 4,
|
|
||||||
"color": 5,
|
|
||||||
"special": 2,
|
|
||||||
"length": 0,
|
|
||||||
"lock": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 8,
|
|
||||||
"num": 1,
|
|
||||||
"color": 8,
|
|
||||||
"special": 0,
|
|
||||||
"length": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 9,
|
|
||||||
"num": 2,
|
|
||||||
"color": 8,
|
|
||||||
"special": 0,
|
|
||||||
"length": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 10,
|
|
||||||
"num": 14,
|
|
||||||
"color": 1,
|
|
||||||
"special": 0,
|
|
||||||
"length": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 11,
|
|
||||||
"num": 18,
|
|
||||||
"color": 9,
|
|
||||||
"special": 0,
|
|
||||||
"length": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 12,
|
|
||||||
"num": 28,
|
"num": 28,
|
||||||
"color": 4,
|
"color": 4,
|
||||||
"special": 0,
|
"special": 0,
|
||||||
"length": 2
|
"length": 2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 13,
|
"id": 2,
|
||||||
"num": 29,
|
"num": 29,
|
||||||
"color": 4,
|
"color": 4,
|
||||||
"special": 0,
|
"special": 0,
|
||||||
"length": 0
|
"length": 0
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": 3,
|
||||||
|
"num": 5,
|
||||||
|
"color": 10,
|
||||||
|
"special": 0,
|
||||||
|
"length": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 4,
|
||||||
|
"num": 6,
|
||||||
|
"color": 10,
|
||||||
|
"special": 0,
|
||||||
|
"length": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 5,
|
||||||
|
"num": 32,
|
||||||
|
"color": 3,
|
||||||
|
"special": 0,
|
||||||
|
"length": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 6,
|
||||||
|
"num": 33,
|
||||||
|
"color": 3,
|
||||||
|
"special": 0,
|
||||||
|
"length": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 7,
|
||||||
|
"num": 1,
|
||||||
|
"color": 8,
|
||||||
|
"special": 0,
|
||||||
|
"length": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 8,
|
||||||
|
"num": 2,
|
||||||
|
"color": 8,
|
||||||
|
"special": 0,
|
||||||
|
"length": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 9,
|
||||||
|
"num": 15,
|
||||||
|
"color": 6,
|
||||||
|
"special": 0,
|
||||||
|
"length": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10,
|
||||||
|
"num": 17,
|
||||||
|
"color": 6,
|
||||||
|
"special": 0,
|
||||||
|
"length": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 11,
|
||||||
|
"num": 19,
|
||||||
|
"color": 6,
|
||||||
|
"special": 0,
|
||||||
|
"length": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 12,
|
||||||
|
"num": 14,
|
||||||
|
"color": 1,
|
||||||
|
"special": 0,
|
||||||
|
"length": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 13,
|
||||||
|
"num": 18,
|
||||||
|
"color": 9,
|
||||||
|
"special": 0,
|
||||||
|
"length": 1
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": 14,
|
"id": 14,
|
||||||
"num": 30,
|
"num": 30,
|
||||||
|
@ -446,17 +455,19 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 16,
|
"id": 16,
|
||||||
"num": 32,
|
"num": 3,
|
||||||
"color": 3,
|
"color": 5,
|
||||||
"special": 0,
|
"special": 2,
|
||||||
"length": 2
|
"length": 2,
|
||||||
|
"lock": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 17,
|
"id": 17,
|
||||||
"num": 33,
|
"num": 4,
|
||||||
"color": 3,
|
"color": 5,
|
||||||
"special": 0,
|
"special": 2,
|
||||||
"length": 0
|
"length": 0,
|
||||||
|
"lock": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
|
@ -278,8 +278,7 @@ protected update(dt: number): void {
|
||||||
type:systemType,
|
type:systemType,
|
||||||
fail_reason:"用户取消支付",
|
fail_reason:"用户取消支付",
|
||||||
}
|
}
|
||||||
|
cc.fx.GameTool.shushu_Track("payment_fail",dataFail2);
|
||||||
cc.fx.GameTool.shushu_Track("payment_fail",name);
|
|
||||||
}
|
}
|
||||||
else if(data.data.pay_state == 2){
|
else if(data.data.pay_state == 2){
|
||||||
this.btn_Touch = true;
|
this.btn_Touch = true;
|
||||||
|
@ -297,8 +296,6 @@ protected update(dt: number): void {
|
||||||
type:systemType,
|
type:systemType,
|
||||||
}
|
}
|
||||||
cc.fx.GameTool.shushu_Track("payment",dataSuccess);
|
cc.fx.GameTool.shushu_Track("payment",dataSuccess);
|
||||||
let name = "购买金币道具:"+ productId;
|
|
||||||
MiniGameSdk.API.yinli_Pay(price,Utils.outTradeNo,name)
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
MiniGameSdk.API.showToast("网络异常,充值奖励将在登录后再次发放");
|
MiniGameSdk.API.showToast("网络异常,充值奖励将在登录后再次发放");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user