From 79b9eee573ff73c33c51c1141f6e6830cebd6716 Mon Sep 17 00:00:00 2001 From: "COMPUTER\\EDY" <249929363@qq.com> Date: Wed, 8 Apr 2026 14:16:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E8=B7=B3=E8=B7=83?= =?UTF-8?q?=E9=97=A8BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Script/Map.ts | 4 + assets/Script/Wall.ts | 3 + assets/custom/Json/level1443.json | 376 +++++++++++++++++++++++++ assets/custom/Json/level1443.json.meta | 6 + 4 files changed, 389 insertions(+) create mode 100644 assets/custom/Json/level1443.json create mode 100644 assets/custom/Json/level1443.json.meta diff --git a/assets/Script/Map.ts b/assets/Script/Map.ts index 4101f96..3c63b3e 100644 --- a/assets/Script/Map.ts +++ b/assets/Script/Map.ts @@ -1628,6 +1628,10 @@ export default class MapConroler extends cc.Component { let revolvingNode = this.wallArray[n].getChildByName("wall").getComponent("Wall").revolvingNode; if (revolvingNode) revolvingNode.children[0].scaleX = -revolvingNode.children[0].scaleX; } + // jumpwallarray 里面元素的数组 也要元素翻转 + for (let n = 0; n < this.jumpWallArray.length; n++) { + this.jumpWallArray[n].reverse(); + } } for (let i = 0; i < this.jumpWallArray.length; i++) { diff --git a/assets/Script/Wall.ts b/assets/Script/Wall.ts index 7191ab0..ba0f5f6 100644 --- a/assets/Script/Wall.ts +++ b/assets/Script/Wall.ts @@ -1025,6 +1025,9 @@ export default class Wall extends cc.Component { this.jump = true; this.length = 0; this.jumpNode = this.node.parent.getChildByName("jump"); + if (MapConroler._instance.jump_state == false) { + this.jumpNode.getChildByName("arror").scaleY = -1 + } this.jumpNode.active = true; cc.tween(this.jumpNode) .delay(0.1) diff --git a/assets/custom/Json/level1443.json b/assets/custom/Json/level1443.json new file mode 100644 index 0000000..243add1 --- /dev/null +++ b/assets/custom/Json/level1443.json @@ -0,0 +1,376 @@ +{ + "LEVEL_INFO": [ + { + "risefall": [], + "id": "1443", + "map": [ + 9, + 9 + ], + "time": 80, + "gap": [ + { + "x": 7, + "y": 2, + "z": 0 + }, + { + "x": 7, + "y": 3, + "z": 0 + }, + { + "x": 7, + "y": 4, + "z": 0 + } + ] + } + ], + "BLOCK_INFO": [ + [ + { + "block": 20, + "color": 3, + "type": 0, + "position": { + "x": -60, + "y": -60, + "z": 0 + }, + "id": 210 + }, + { + "block": 2, + "color": 3, + "type": 0, + "position": { + "x": -180, + "y": -420, + "z": 0 + }, + "id": 220 + }, + { + "block": 2, + "color": 8, + "type": 0, + "position": { + "x": 300, + "y": 180, + "z": 0 + }, + "lock": false, + "id": 230 + }, + { + "block": 4, + "color": 5, + "type": 0, + "position": { + "x": 420, + "y": 60, + "z": 0 + }, + "lock": true, + "id": 240 + }, + { + "block": 1, + "color": 7, + "type": 0, + "position": { + "x": 300, + "y": 60, + "z": 0 + }, + "lock": true, + "id": 250 + }, + { + "block": 2, + "color": 6, + "type": 0, + "position": { + "x": -60, + "y": 60, + "z": 0 + }, + "lock": false, + "id": 260 + }, + { + "block": 5, + "color": 9, + "type": 4, + "position": { + "x": 300, + "y": -420, + "z": 0 + }, + "freezeTime": 6, + "id": 280 + }, + { + "block": 23, + "color": 9, + "type": 4, + "position": { + "x": 300, + "y": -180, + "z": 0 + }, + "freezeTime": 6, + "id": 290 + }, + { + "block": 23, + "color": 9, + "type": 4, + "position": { + "x": 180, + "y": -180, + "z": 0 + }, + "freezeTime": 6, + "id": 300 + }, + { + "block": 5, + "color": 9, + "type": 1, + "position": { + "x": 60, + "y": -420, + "z": 0 + }, + "stacking": 2, + "colorChange": true, + "floor": 1, + "floorTime": 10, + "floorMove": true, + "id": 310 + }, + { + "block": 0, + "color": 3, + "type": 16, + "position": { + "x": 60, + "y": -180, + "z": 0 + }, + "questionTime": 7, + "id": 320 + }, + { + "block": 10, + "color": 5, + "type": 16, + "position": { + "x": 60, + "y": -60, + "z": 0 + }, + "questionTime": 8, + "id": 330 + }, + { + "block": 0, + "color": 5, + "type": 16, + "position": { + "x": 180, + "y": -60, + "z": 0 + }, + "questionTime": 11, + "id": 340 + }, + { + "block": 2, + "color": 9, + "type": 16, + "position": { + "x": -300, + "y": -420, + "z": 0 + }, + "questionTime": 5, + "id": 350 + }, + { + "block": 0, + "color": 1, + "type": 16, + "position": { + "x": 60, + "y": 300, + "z": 0 + }, + "questionTime": 6, + "id": 360 + }, + { + "block": 1, + "color": 9, + "type": 0, + "position": { + "x": -180, + "y": -180, + "z": 0 + }, + "floor": 2, + "floorTime": 2, + "floorMove": true, + "lock": true, + "id": 370 + }, + { + "block": 0, + "color": 11, + "type": 0, + "position": { + "x": 420, + "y": -420, + "z": 0 + }, + "id": 380 + }, + { + "block": 3, + "color": 1, + "type": 17, + "position": { + "x": -60, + "y": 300, + "z": 0 + }, + "boomTime": 7, + "id": 380 + } + ] + ], + "WALL_INFO": [ + [ + { + "id": 1444, + "num": 0, + "color": 8, + "special": 0, + "length": 2 + }, + { + "id": 1445, + "num": 1, + "color": 8, + "special": 0, + "length": 0 + }, + { + "id": 1446, + "num": 4, + "color": 5, + "special": 8, + "length": 3 + }, + { + "id": 1447, + "num": 5, + "color": 5, + "special": 8, + "length": 0 + }, + { + "id": 1448, + "num": 6, + "color": 5, + "special": 8, + "length": 0, + "jump": true, + "jumpDirection": false + }, + { + "id": 1449, + "num": 8, + "color": 2, + "special": 0, + "length": 2 + }, + { + "id": 1450, + "num": 10, + "color": 2, + "special": 0, + "length": 0 + }, + { + "id": 1451, + "num": 18, + "color": 3, + "special": 8, + "length": 2 + }, + { + "id": 1452, + "num": 25, + "color": 3, + "special": 8, + "length": 0, + "jump": true, + "jumpDirection": false + }, + { + "id": 1453, + "num": 28, + "color": 9, + "special": 0, + "length": 2 + }, + { + "id": 1454, + "num": 29, + "color": 9, + "special": 0, + "length": 0 + }, + { + "id": 1455, + "num": 26, + "color": 1, + "special": 0, + "length": 1 + }, + { + "id": 1456, + "num": 15, + "color": 6, + "special": 3, + "length": 2, + "freeze": 8 + }, + { + "id": 1457, + "num": 17, + "color": 6, + "special": 3, + "length": 0, + "freeze": 8 + }, + { + "id": 1458, + "num": 9, + "color": 7, + "special": 0, + "length": 2 + }, + { + "id": 1459, + "num": 11, + "color": 7, + "special": 0, + "length": 0 + } + ] + ] +} \ No newline at end of file diff --git a/assets/custom/Json/level1443.json.meta b/assets/custom/Json/level1443.json.meta new file mode 100644 index 0000000..c083b3b --- /dev/null +++ b/assets/custom/Json/level1443.json.meta @@ -0,0 +1,6 @@ +{ + "ver": "1.0.2", + "uuid": "0ec41cfb-719e-4e78-bc99-efab7c8a861a", + "importer": "json", + "subMetas": {} +} \ No newline at end of file