Commit 4c007df4 authored by zjz1994's avatar zjz1994

暂存

parent 4d10f299
......@@ -6516,7 +6516,7 @@ export default class MainScene extends Scene {
}
//铺草在一次掉落前,不分先后顺序
initTurf(){
console.error("重置消除数组",JSON.parse(JSON.stringify(this.recoverArr)));
// console.error("重置消除数组",JSON.parse(JSON.stringify(this.recoverArr)));
this.recoverArr = new Array();
}
//添加新的小消除组
......@@ -6570,7 +6570,7 @@ export default class MainScene extends Scene {
all:alldata
}
this.recoverArr.push(newturdata);
console.log("新增消除数组",JSON.parse(JSON.stringify(newturdata)));
// console.log("新增消除数组",JSON.parse(JSON.stringify(newturdata)));
this.solveTurf(turidx,maindata,alldata);
}
/**
......
......@@ -78,12 +78,13 @@ export default class RedBombAlertPanel extends Panel {
egret.Tween.get(this['group']).to({alpha: 0}, 300);
this.addChild(mv);
setTimeout(() => {
if(this.showimgtype==1||this.showimgtype==2){
this.showimgtype = 4;
this.changeShowTitImg(this.showimgtype);
this['group'].alpha = 1;
this['tips'].text = `快去另一个关卡找找吧`;
}
// console.log('红包弹窗',this.showimgtype);
// if(this.showimgtype==1||this.showimgtype==2){
// this.showimgtype = 4;
// this.changeShowTitImg(this.showimgtype);
// this['group'].alpha = 1;
// this['tips'].text = `快去另一个关卡找找吧`;
// }
this.btn.visible = true;
......
......@@ -6,7 +6,6 @@ export class Grass extends egret.Bitmap {
super();
var texture:egret.Texture = RES.getRes("ele"+ElementType.Grass+"_png");
this.texture = texture;
console.log("草的大小",texture.textureWidth,texture.textureHeight);
var grasswidth = 76;
this.width = this.height = grasswidth;
this.anchorOffsetX = grasswidth/2;
......
......@@ -129,7 +129,7 @@ export class AiControl {
//打乱索引
redIndexs.sort(function () { return (0.5 - Math.random()); });
let six: any[] = redIndexs.splice(0, fesELeSmallNum);
console.log("发红包",six,fesELeSmallNum);
// console.log("发红包",six,fesELeSmallNum);
//如果不足6个,就修改thisObj里的
if (six.length < fesELeSmallNum) {
thisObj.festivalTargetNum = fesELeSmallNum;
......
{
"code":"0000000000",
"data":{
"remain": 1,
"remain": 3,
"redBombSwitchTime": "77798963487234"
},
"desc":"OK",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment