From d028d5ab1cd907fa2bb17aaf96e6be2574defb23 Mon Sep 17 00:00:00 2001 From: "COMPUTER\\EDY" <249929363@qq.com> Date: Thu, 14 May 2026 19:45:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=A4=E4=B8=AA=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=8C=E4=B8=80=E4=B8=AA=E6=98=AF=20=E5=86=B0?= =?UTF-8?q?=E5=86=BB=E6=B2=A1=E6=9C=89=E7=AB=8B=E5=8D=B3=E8=A7=A3=E5=86=BB?= =?UTF-8?q?=20=E7=AD=89=E5=8A=A8=E7=94=BB=20=E5=AF=BC=E8=87=B4=E6=8F=90?= =?UTF-8?q?=E5=89=8D=E5=88=A4=E6=AD=BB=E4=BA=86=EF=BC=8C=20=E7=AC=AC?= =?UTF-8?q?=E4=BA=8C=E4=B8=AA=E9=97=AE=E9=A2=98=E6=98=AF=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=20=E5=BC=80=E5=85=B3=E9=97=A8=E5=8A=A8=E7=94=BB?= =?UTF-8?q?=E8=A2=AB=E6=89=93=E6=96=AD=E5=90=8E=E6=98=BE=E7=A4=BA=E5=92=8C?= =?UTF-8?q?=E5=AE=9E=E9=99=85=E7=8A=B6=E6=80=81=E4=B8=8D=E4=B8=80=E8=87=B4?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Script/Block.ts | 6 +++--- assets/Script/Map.ts | 4 +++- assets/Script/Wall.ts | 19 +++++++++++++++++++ assets/Script/prop/Freeze.ts | 3 ++- 4 files changed, 27 insertions(+), 5 deletions(-) diff --git a/assets/Script/Block.ts b/assets/Script/Block.ts index 87817ca..dbe7631 100644 --- a/assets/Script/Block.ts +++ b/assets/Script/Block.ts @@ -1428,7 +1428,7 @@ export default class Block extends cc.Component { } } } - }, 2000); + }, 1200); }, time * 1000); @@ -2055,7 +2055,7 @@ export default class Block extends cc.Component { } } } - }, 2000); + }, 900); MapConroler._instance.ismagic = false; }, 1200); @@ -2267,7 +2267,7 @@ export default class Block extends cc.Component { } } } - }, 2000); + }, 1200); //如果是锤子状态消除 MapConroler._instance.ishammer = false; diff --git a/assets/Script/Map.ts b/assets/Script/Map.ts index f7de90f..fd20fcb 100644 --- a/assets/Script/Map.ts +++ b/assets/Script/Map.ts @@ -5805,9 +5805,10 @@ export default class MapConroler extends cc.Component { } if (jg == true) { if (wall.node.parent.getChildByName("length").active == true) { + // console.log("普通快:不可通过"); jg = false; } - // console.log("普通快:不可通过"); + // console.log("普通快:可以通过"); } return jg; } @@ -5863,6 +5864,7 @@ export default class MapConroler extends cc.Component { if (this.blockCanMove(this.blocks[i])) { for (let j = 0; j < this.wall_Pass.length; j++) { //如果颜色相同 + // console.log("判断颜色是否相同", this.wall_Pass[j].color, color); if (this.wall_Pass[j].color == color && this.wall_Pass[j].node.parent.getChildByName("length").active == false && this.wall_Pass[j].jump != true) { //星星块特殊判断 if (this.blocks[i].getComponent("Block").type == 5) { diff --git a/assets/Script/Wall.ts b/assets/Script/Wall.ts index b73b886..079dcb9 100644 --- a/assets/Script/Wall.ts +++ b/assets/Script/Wall.ts @@ -828,6 +828,10 @@ export default class Wall extends cc.Component { .to(0.3, { scaleX: this.openNode.children[0].scaleX < 0 ? -fill : fill }) .call(() => { this.leftTween = null; // 动画完成后清除引用 + if (this.open == true) + this.openNode.children[0].scaleX = this.openNode.children[0].scaleX < 0 ? -0.01 : 0.01; + else + this.openNode.children[0].scaleX = this.openNode.children[0].scaleX < 0 ? -1 : 1; }) .start(); @@ -836,8 +840,23 @@ export default class Wall extends cc.Component { .to(0.3, { scaleX: this.openNode.children[1].scaleX < 0 ? -fill : fill }) .call(() => { this.rightTween = null; // 动画完成后清除引用 + if (this.open == true) + this.openNode.children[1].scaleX = this.openNode.children[1].scaleX < 0 ? -0.01 : 0.01; + else + this.openNode.children[1].scaleX = this.openNode.children[1].scaleX < 0 ? -1 : 1; }) .start(); + + setTimeout(() => { + if (this.open == true) { + this.openNode.children[1].scaleX = this.openNode.children[1].scaleX < 0 ? -0.01 : 0.01; + this.openNode.children[0].scaleX = this.openNode.children[0].scaleX < 0 ? -0.01 : 0.01; + } + else { + this.openNode.children[1].scaleX = this.openNode.children[1].scaleX < 0 ? -1 : 1; + this.openNode.children[0].scaleX = this.openNode.children[0].scaleX < 0 ? -1 : 1; + } + }, 3100); } // ============================================ diff --git a/assets/Script/prop/Freeze.ts b/assets/Script/prop/Freeze.ts index 85bd0a6..5b4b334 100644 --- a/assets/Script/prop/Freeze.ts +++ b/assets/Script/prop/Freeze.ts @@ -53,6 +53,7 @@ export default class Freeze extends cc.Component { cc.fx.GameTool.numberScaleAction(this.node.getChildByName("time")); // this.node.getChildByName("time").getComponent(cc.Label).string = this.time.toString(); if (this.time <= 0) { + console.log("冰冻结束,解冻"); this.node.getChildByName("bingkuai").active = true; const skeleton = this.node.getChildByName("bingkuai").getComponent(sp.Skeleton); skeleton.setAnimation(1, "bingkuai", false); @@ -62,13 +63,13 @@ export default class Freeze extends cc.Component { .to(0.5, { opacity: 0 }) .start(); cc.fx.AudioManager._instance.playEffect("freezeBlock", null); + if (this.node.parent) this.node.parent.getComponent("Block").resetFreeze(); // this.node.getChildByName("icon").getComponent(cc.Sprite).setMaterial(0,this.freeze); // this.node.children.forEach(element => { // element.destroy(); // }); setTimeout(() => { if (this.node) { - if (this.node.parent) this.node.parent.getComponent("Block").resetFreeze(); this.node.destroy(); this.node.removeFromParent(); }