Compare commits

..

No commits in common. "8dfd09c993fd5b0e4a1dcd1428d78e8aca56ca6e" and "e7184691eb58ed40ab8662faaddda13f43820610" have entirely different histories.

15 changed files with 898 additions and 1371 deletions

File diff suppressed because it is too large Load Diff

View File

@ -186,6 +186,7 @@ export default class Block extends cc.Component {
this.initColor();
this.initType();
this.initBlocks();
if(this.type != BlockType.){
this.node.on(cc.Node.EventType.TOUCH_START, this.touchStart, this);
this.node.on(cc.Node.EventType.TOUCH_MOVE, this.touchMove, this);
@ -744,7 +745,7 @@ export default class Block extends cc.Component {
eliminate(){
//锤子状态消失
MapConroler._instance.pause = true;
if(MapConroler._instance.hammer == true) MapConroler._instance.hammer = false;
MapConroler._instance.hammer = false;
//如果方块是有特殊状态,则特殊处理
if(this.type == BlockType.){
this.node.getChildByName("freeze").getComponent("Freeze").reduce(2);
@ -788,7 +789,7 @@ export default class Block extends cc.Component {
setVibrate(type, count){
// 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){
return;
}
@ -1267,13 +1268,9 @@ export default class Block extends cc.Component {
}
if(this.type == BlockType. && this.moveStack == true){
if((this.stacking.x != 0 || this.stacking.y!= 0) && this.block_Info.node!= null){
this.isTouch = false;
// this.node.x = this.block_Info.node.x + this.stacking.x;
// 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.stacking.x != 0 || this.stacking.y!= 0){
this.node.x = this.block_Info.node.x + this.stacking.x;
this.node.y = this.block_Info.node.y + this.stacking.y;
}
}
if(this.block_Info){

View File

@ -686,8 +686,6 @@ export default class GameManager extends cc.Component {
this.load1 = this.load2 = false;
MiniGameSdk.API.shushu_Login();
MiniGameSdk.API.yinli_Init();
MiniGameSdk.API.yinli_Login();
cc.fx.GameTool.setWechatGameGroup(2);
this.startGame();
}
}

View File

@ -36,22 +36,12 @@ export default class NewClass extends cc.Component {
//@ts-ignore
cc.internal.inputManager._maxTouches = 1
cc.debug.setDisplayStats(false);
let manager = cc.director.getCollisionManager();
manager.enabled = true;
this.setWX();
// let version = cc.fx.GameTool.getWechatGameVersion();
// if(version == "开发版" || version == "体验版"){
// cc.debug.setDisplayStats(false);
// }
// else if(version == "正式版"){
// cc.debug.setDisplayStats(false);
// }
// else{
// cc.debug.setDisplayStats(false);
// }
cc.debug.setDisplayStats(false);
cc.tween(this.node1)

View File

@ -1391,7 +1391,6 @@ export default class MapConroler extends cc.Component {
}
winLevel() {
MiniGameSdk.API.showToast(cc.fx.GameConfig.GM_INFO.level);
if(this.node.parent.parent.getChildByName("Win").
getChildByName("nextBtn").getComponent("btnControl")._touch == false){
return;
@ -1409,6 +1408,9 @@ export default class MapConroler extends cc.Component {
}, 500);
}
else if (cc.fx.GameConfig.GM_INFO.level == 249) {
MiniGameSdk.API.showToast("每周更新,敬请期待!");
}
else {
// console.log("下一关");
if (this.new_mode == 3) {
@ -1559,10 +1561,11 @@ export default class MapConroler extends cc.Component {
//判断游戏失败
failLevel(type) {
this.stopTimeCutDown();
if (this.gameOver == true || this.gameWin == true) {
return;
}
this.stopTimeCutDown();
let time = 0;
this.gameOver = true;
if (type == "boom") {
@ -1667,7 +1670,7 @@ export default class MapConroler extends cc.Component {
//使用时间道具
useTimeProp() {
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;
}
let freezeBtn = this.node.parent.getChildByName("Bottom").getChildByName("timeBtn");
@ -1796,7 +1799,7 @@ export default class MapConroler extends cc.Component {
//使用锤子道具
useHammer() {
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;
}
let hammerBtn = this.node.parent.getChildByName("Bottom").getChildByName("destroyBtn");
@ -1896,7 +1899,7 @@ export default class MapConroler extends cc.Component {
//使用魔法棒随机消除两个方块
useMagic() {
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;
}
let magicBtn = this.node.parent.getChildByName("Bottom").getChildByName("magicBtn");
@ -1930,7 +1933,6 @@ export default class MapConroler extends cc.Component {
this.setPropNum();
// this.magicLabel.string = cc.fx.GameConfig.GM_INFO.magicAmount.toString();
let propInfo = cc.fx.StorageMessage.getStorage("prop");
if(propInfo){
propInfo.magicAmount = cc.fx.GameConfig.GM_INFO.magicAmount;
propInfo.timestamp = timestamp;
cc.fx.StorageMessage.setStorage("prop", propInfo);
@ -1941,8 +1943,6 @@ export default class MapConroler extends cc.Component {
num: -1
}
cc.fx.GameTool.shushu_Track("resource_cost", data);
}
let nomalArray = [];
// this.magicBtn.node.active = false;
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) {
nomalArray.push(this.blocks[i].getComponent("Block").block_Info.node);
}
// else nomalArray.push(this.blocks[i]);
else nomalArray.push(this.blocks[i]);
}
else {
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) {
time = 200;
}
if (time > 0) {
setTimeout(() => {
nomalArray[1].getComponent("Block").eliminate();
// if (time > 0) {
// setTimeout(() => {
// nomalArray[1].getComponent("Block").eliminate();
// }, time);
// return;
// }
// else {
// nomalArray[1].getComponent("Block").eliminate();
// return;
// }
}, time);
return;
}
else {
nomalArray[1].getComponent("Block").eliminate();
return;
}
}
else if (nomalArray.length == 1) {
nomalArray[0].getComponent("Block").eliminate();
let time = 0;
if (nomalArray[0].getComponent("Block").type == 1 || nomalArray[0].getComponent("Block").type == 9) {
time = 200;
}
setTimeout(() => {
if (this.freezeArray.length == 0 && this.loackArray.length == 0) {
// console.log("只剩下一个块道具使用完毕");
}
else {
if (this.loackArray.length != 0) {
// console.log("消除一个普通块后,消除一个带锁块");
this.loackArray[0].getComponent("Block").eliminate();
return;
}
else if (this.freezeArray.length != 0) {
// console.log("消除一个普通块后,消除一个冻结块");
this.freezeArray[0].getComponent("Block").eliminate();
return;
}
}
}, 200 + time);
}
else {
let count = 2;
if (this.loackArray.length != 0) {
for (let i = 0; i < this.loackArray.length; i++) {
// console.log("没有普通快,魔法消除一个带锁块");
this.loackArray[i].getComponent("Block").eliminate();
count -= 1;
if (count == 0) {
break;
}
}
}
// else if (nomalArray.length == 1) {
// nomalArray[0].getComponent("Block").eliminate();
// let time = 0;
// if (nomalArray[0].getComponent("Block").type == 1 || nomalArray[0].getComponent("Block").type == 9) {
// time = 200;
// }
// setTimeout(() => {
// if (this.freezeArray.length == 0 && this.loackArray.length == 0) {
// // console.log("只剩下一个块道具使用完毕");
// }
// else {
// if (this.loackArray.length != 0) {
// // console.log("消除一个普通块后,消除一个带锁块");
// this.loackArray[0].getComponent("Block").eliminate();
// return;
// }
// else if (this.freezeArray.length != 0) {
// // console.log("消除一个普通块后,消除一个冻结块");
// this.freezeArray[0].getComponent("Block").eliminate();
// return;
// }
// }
// }, 200 + time);
// }
// else {
// let count = 2;
// if (this.loackArray.length != 0) {
// for (let i = 0; i < this.loackArray.length; i++) {
// // console.log("没有普通快,魔法消除一个带锁块");
// this.loackArray[i].getComponent("Block").eliminate();
// count -= 1;
// if (count == 0) {
// break;
// }
// }
// }
// setTimeout(() => {
// if (count != 0) {
// for (let i = 0; i < this.freezeArray.length; i++) {
// // console.log("没有普通快,魔法消除一个冻结块");
// // this.freezeArray[i].getComponent("Block").eliminate();
// count -= 1;
// if (count == 0) {
// break;
// }
// }
// }
// }, 100);
// }
setTimeout(() => {
if (count != 0) {
for (let i = 0; i < this.freezeArray.length; i++) {
// console.log("没有普通快,魔法消除一个冻结块");
// this.freezeArray[i].getComponent("Block").eliminate();
count -= 1;
if (count == 0) {
break;
}
}
}
}, 100);
}
}
}
}

View File

@ -297,14 +297,14 @@ export default class SceneManager extends cc.Component {
propWindow.getChildByName("magic").active = false;
propWindow.getChildByName("buy_Btn").getComponent("btnControl").setTouch(true);
propWindow.getChildByName(name).active = true;
// if(name == "hammer"){
// propWindow.getChildByName("buy_Btn").getChildByName("hammer").active = true;
// propWindow.getChildByName("buy_Btn").getChildByName("nomal").active = false;
// }
// else{
// propWindow.getChildByName("buy_Btn").getChildByName("hammer").active = false;
// propWindow.getChildByName("buy_Btn").getChildByName("nomal").active = true;
// }
if(name == "hammer"){
propWindow.getChildByName("buy_Btn").getChildByName("hammer").active = true;
propWindow.getChildByName("buy_Btn").getChildByName("nomal").active = false;
}
else{
propWindow.getChildByName("buy_Btn").getChildByName("hammer").active = false;
propWindow.getChildByName("buy_Btn").getChildByName("nomal").active = true;
}
}
clickBtn() {

View File

@ -1260,12 +1260,6 @@ export namespace MiniGameSdk {
maxRetries: 3, // 网络请求失败时的重试次数1 表示不重试。默认值是 3
enablePersistence: true, // 是否使用本地缓存,主实例默认为 true子实例默认为 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 .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 42173CNY人民币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();
}
}
}
}

View File

@ -177,7 +177,6 @@ export default class AudioManager extends cc.Component {
return this.play(this[name], false, callback, this.mEffectSwitch);
}
playMusic(key, callback, loop) {
console.log("音频开关________________________________________");
if (!cc.fx.GameConfig.GM_INFO.musicOpen) {
return;
}

View File

@ -664,8 +664,6 @@ var GameTool = {
}
console.log("____________即将上传Shop_buy",buyData);
cc.fx.GameTool.shushu_Track("shop_buy",buyData);
callback();
}
},
@ -898,7 +896,7 @@ var GameTool = {
removeAllLister:function () {
},
//上报数据
shushu_Track: function(name,data){
let eventData = {}
switch(name){
@ -985,7 +983,6 @@ var GameTool = {
MiniGameSdk.API.shushu_Track(name, eventData);
},
//获取微信小游戏版本号
getWechatGameVersion: function(){
//@ts-ignore
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 };

View File

@ -55,7 +55,6 @@ export default class Boom extends cc.Component {
NumberToImage.numberToImageNodes(this.time,20,8,"lock_",this.node.getChildByName("time"),false);
if(this.time <= 0){
this.unschedule(this.updateTime);
MapConroler._instance.failLevel("boom");
this.node.getChildByName("zhandan").active = true;
this.node.getChildByName("bg").active = false;
const skeleton = this.node.getChildByName("zhandan").getComponent(sp.Skeleton);
@ -65,7 +64,7 @@ export default class Boom extends cc.Component {
// 动画播放完成后销毁节点
this.node.destroy();
});
MapConroler._instance.failLevel("boom");
// this.node.destroy();
}
}

View File

@ -61,7 +61,7 @@ export default class Freeze extends cc.Component {
this.node.parent.getComponent("Block").resetFreeze();
this.node.destroy();
this.node.removeFromParent();
}, 500);
}, 600);
}
}

View File

@ -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
}
]
]
}

View File

@ -1,6 +0,0 @@
{
"ver": "1.0.2",
"uuid": "c711910f-ab6a-48d5-90d6-90d1f95a862e",
"importer": "json",
"subMetas": {}
}

View File

@ -6,20 +6,25 @@
9,
12
],
"time": 220,
"time": 215,
"gap": [
{
"x": 1,
"y": 10,
"z": 0
},
{
"x": 2,
"y": 10,
"y": 1,
"z": 0
},
{
"x": 7,
"y": 1,
"z": 0
},
{
"x": 1,
"y": 9,
"z": 0
},
{
"x": 2,
"y": 10,
"z": 0
},
@ -28,25 +33,20 @@
"y": 10,
"z": 0
},
{
"x": 7,
"y": 10,
"z": 0
},
{
"x": 1,
"y": 9,
"y": 10,
"z": 0
},
{
"x": 7,
"y": 9,
"z": 0
},
{
"x": 1,
"y": 1,
"z": 0
},
{
"x": 7,
"y": 1,
"z": 0
}
]
}
@ -54,93 +54,27 @@
"BLOCK_INFO": [
[
{
"block": 2,
"color": 2,
"block": 23,
"color": 1,
"type": 0,
"position": {
"x": -180,
"y": 240,
"y": -120,
"z": 0
},
"id": 210
},
{
"block": 1,
"color": 2,
"block": 23,
"color": 1,
"type": 0,
"position": {
"x": 420,
"y": -240,
"x": 300,
"y": -120,
"z": 0
},
"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,
"color": 4,
@ -150,7 +84,29 @@
"y": 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,
@ -161,48 +117,92 @@
"y": 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
},
{
"block": 0,
"color": 5,
"type": 2,
"block": 22,
"color": 2,
"type": 0,
"position": {
"x": -60,
"y": 360,
"x": -180,
"y": -480,
"z": 0
},
"id": 310
},
{
"block": 0,
"block": 1,
"color": 2,
"type": 2,
"type": 0,
"position": {
"x": 180,
"y": 360,
"x": 420,
"y": -240,
"z": 0
},
"id": 320
},
{
"block": 0,
"color": 9,
"color": 2,
"type": 2,
"position": {
"x": -180,
"y": 0,
"x": 60,
"y": -480,
"z": 0
},
"id": 330
},
{
"block": 0,
"color": 1,
"color": 3,
"type": 2,
"position": {
"x": 300,
"y": 0,
"x": -300,
"y": -360,
"z": 0
},
"id": 340
@ -218,17 +218,6 @@
},
"id": 350
},
{
"block": 0,
"color": 2,
"type": 2,
"position": {
"x": 60,
"y": -480,
"z": 0
},
"id": 360
},
{
"block": 0,
"color": 5,
@ -238,7 +227,7 @@
"y": -600,
"z": 0
},
"id": 370
"id": 360
},
{
"block": 0,
@ -249,52 +238,62 @@
"y": -480,
"z": 0
},
"id": 370
},
{
"block": 0,
"color": 9,
"type": 2,
"position": {
"x": -180,
"y": 0,
"z": 0
},
"id": 380
},
{
"block": 23,
"color": 10,
"block": 0,
"color": 5,
"type": 2,
"position": {
"x": 300,
"y": -120,
"x": -60,
"y": 360,
"z": 0
},
"id": 390
},
{
"block": 23,
"color": 10,
"block": 0,
"color": 2,
"type": 2,
"position": {
"x": -180,
"y": -120,
"x": 180,
"y": 360,
"z": 0
},
"id": 400
},
{
"block": 3,
"color": 8,
"type": 9,
"block": 0,
"color": 1,
"type": 2,
"position": {
"x": 180,
"y": 240,
"z": 0
},
"adhesiveTime": 2,
"id": 410
},
{
"block": 2,
"color": 3,
"type": 9,
"position": {
"x": 60,
"x": 300,
"y": 0,
"z": 0
},
"adhesiveTime": 1,
"id": 410
},
{
"block": 18,
"color": 6,
"type": 3,
"position": {
"x": 60,
"y": -360,
"z": 0
},
"lockTime": 8,
"id": 420
},
{
@ -320,16 +319,28 @@
"id": 440
},
{
"block": 18,
"color": 6,
"type": 3,
"block": 3,
"color": 8,
"type": 9,
"position": {
"x": 60,
"y": -360,
"x": 180,
"y": 240,
"z": 0
},
"lockTime": 8,
"adhesiveTime": 2,
"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,
"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,
"color": 4,
"special": 0,
"length": 2
},
{
"id": 13,
"id": 2,
"num": 29,
"color": 4,
"special": 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,
"num": 30,
@ -446,17 +455,19 @@
},
{
"id": 16,
"num": 32,
"color": 3,
"special": 0,
"length": 2
"num": 3,
"color": 5,
"special": 2,
"length": 2,
"lock": true
},
{
"id": 17,
"num": 33,
"color": 3,
"special": 0,
"length": 0
"num": 4,
"color": 5,
"special": 2,
"length": 0,
"lock": true
}
]
]

View File

@ -278,8 +278,7 @@ protected update(dt: number): void {
type:systemType,
fail_reason:"用户取消支付",
}
cc.fx.GameTool.shushu_Track("payment_fail",name);
cc.fx.GameTool.shushu_Track("payment_fail",dataFail2);
}
else if(data.data.pay_state == 2){
this.btn_Touch = true;
@ -297,8 +296,6 @@ protected update(dt: number): void {
type:systemType,
}
cc.fx.GameTool.shushu_Track("payment",dataSuccess);
let name = "购买金币道具:"+ productId;
MiniGameSdk.API.yinli_Pay(price,Utils.outTradeNo,name)
}
else{
MiniGameSdk.API.showToast("网络异常,充值奖励将在登录后再次发放");