diff --git a/assets/Script/Map.ts b/assets/Script/Map.ts index 8830a83..940be75 100644 --- a/assets/Script/Map.ts +++ b/assets/Script/Map.ts @@ -4141,13 +4141,13 @@ export default class MapConroler extends cc.Component { let direction = wall.node.parent.name; if (direction == "left" || direction == "right") { if (wall.length >= shu) { - console.log("竖方向长短不够", wall.length, shu); + console.log("竖方向长短足够", wall.length, shu); jg = true; } } else { if (wall.length >= heng) { - console.log("横方向长短不够", wall.length, heng); + console.log("横方向长短足够", wall.length, heng); jg = true; } } diff --git a/assets/Script/Wall.ts b/assets/Script/Wall.ts index 9edb059..c21096c 100644 --- a/assets/Script/Wall.ts +++ b/assets/Script/Wall.ts @@ -760,14 +760,15 @@ export default class Wall extends cc.Component { // console.log(this.node.parent.name); //顺向的, 在第一个。 // console.log("执行:", this.longAndShort[0], this.longAndShort[1]); + this.length = this.longAndShort[0]; if (type == true) { - this.length = this.longAndShort[0]; - // console.log(this.wall_Info.num, "实际长度:", this.length, "本身长度:", this.wall_Info.length); + // this.length = this.longAndShort[0]; + console.log(this.wall_Info.num, "实际长度:", this.length, "本身长度:", this.wall_Info.length); this.initColor(this.longAndShort[0]); } else { - // console.log(this.wall_Info.num, "隐身"); + console.log(this.wall_Info.num, "隐身", "实际长度:", this.length, "本身长度:", this.wall_Info.length); this.node.getComponent(cc.Sprite).spriteFrame = null; this.node.parent.getChildByName("down").getComponent(cc.Sprite).spriteFrame = null; this.node.parent.getChildByName("length").active = true; diff --git a/assets/Script/module/Tool/GameTool.ts b/assets/Script/module/Tool/GameTool.ts index 2a5f39f..848cc3b 100644 --- a/assets/Script/module/Tool/GameTool.ts +++ b/assets/Script/module/Tool/GameTool.ts @@ -426,8 +426,8 @@ var GameTool = { //关卡上限 maxLevel() { let jg = false; - if (cc.fx.GameConfig.GM_INFO.level > 829) { - cc.fx.GameConfig.GM_INFO.level = 830; + if (cc.fx.GameConfig.GM_INFO.level > 899) { + cc.fx.GameConfig.GM_INFO.level = 900; jg = true; } return jg; diff --git a/assets/custom/Json/level851.json b/assets/custom/Json/level851.json new file mode 100644 index 0000000..767f7cb --- /dev/null +++ b/assets/custom/Json/level851.json @@ -0,0 +1,314 @@ +{ + "LEVEL_INFO": [ + { + "risefall": [], + "id": "851", + "map": [ + 8, + 8 + ], + "time": 120, + "gap": [ + { + "x": 1, + "y": 6, + "z": 0 + }, + { + "x": 2, + "y": 6, + "z": 0 + }, + { + "x": 6, + "y": 4, + "z": 0 + }, + { + "x": 6, + "y": 3, + "z": 0 + } + ] + } + ], + "BLOCK_INFO": [ + [ + { + "block": 21, + "color": 9, + "type": 0, + "position": { + "x": -240, + "y": 0, + "z": 0 + }, + "id": 210 + }, + { + "block": 2, + "color": 9, + "type": 0, + "position": { + "x": -240, + "y": -240, + "z": 0 + }, + "id": 220 + }, + { + "block": 1, + "color": 7, + "type": 0, + "position": { + "x": 120, + "y": 240, + "z": 0 + }, + "id": 230 + }, + { + "block": 2, + "color": 10, + "type": 0, + "position": { + "x": 0, + "y": 0, + "z": 0 + }, + "id": 240 + }, + { + "block": 2, + "color": 4, + "type": 0, + "position": { + "x": 360, + "y": -360, + "z": 0 + }, + "id": 250 + }, + { + "block": 0, + "color": 6, + "type": 0, + "position": { + "x": 240, + "y": -360, + "z": 0 + }, + "id": 260 + }, + { + "block": 1, + "color": 8, + "type": 17, + "position": { + "x": 360, + "y": 240, + "z": 0 + }, + "stacking": 1, + "id": 270 + }, + { + "block": 2, + "color": 3, + "type": 17, + "position": { + "x": 240, + "y": 0, + "z": 0 + }, + "stacking": 2, + "id": 280 + }, + { + "block": 1, + "color": 5, + "type": 17, + "position": { + "x": -120, + "y": -360, + "z": 0 + }, + "stacking": 6, + "id": 290 + }, + { + "block": 0, + "color": 6, + "type": 9, + "position": { + "x": -120, + "y": -240, + "z": 0 + }, + "adhesiveTime": 2, + "lockTime": 8, + "id": 300 + }, + { + "block": 2, + "color": 1, + "type": 9, + "position": { + "x": 0, + "y": -360, + "z": 0 + }, + "adhesiveTime": 1, + "lockTime": 8, + "id": 310 + }, + { + "block": 0, + "color": 1, + "type": 0, + "position": { + "x": 120, + "y": -360, + "z": 0 + }, + "id": 320 + }, + { + "block": 2, + "color": 5, + "type": 8, + "position": { + "x": 120, + "y": -120, + "z": 0 + }, + "id": 330 + } + ] + ], + "WALL_INFO": [ + [ + { + "id": 852, + "num": 0, + "color": 3, + "special": 0, + "length": 2 + }, + { + "id": 853, + "num": 1, + "color": 3, + "special": 0, + "length": 0 + }, + { + "id": 854, + "num": 2, + "color": 1, + "special": 0, + "length": 2 + }, + { + "id": 855, + "num": 3, + "color": 1, + "special": 0, + "length": 0 + }, + { + "id": 856, + "num": 6, + "color": 10, + "special": 0, + "length": 1 + }, + { + "id": 857, + "num": 11, + "color": 5, + "special": 3, + "length": 2, + "freeze": 4 + }, + { + "id": 858, + "num": 13, + "color": 5, + "special": 3, + "length": 0, + "freeze": 4 + }, + { + "id": 859, + "num": 15, + "color": 6, + "special": 0, + "length": 2 + }, + { + "id": 860, + "num": 21, + "color": 6, + "special": 0, + "length": 0 + }, + { + "id": 861, + "num": 24, + "color": 4, + "special": 0, + "length": 2 + }, + { + "id": 862, + "num": 25, + "color": 4, + "special": 0, + "length": 0 + }, + { + "id": 863, + "num": 22, + "color": 9, + "special": 0, + "length": 2 + }, + { + "id": 864, + "num": 23, + "color": 9, + "special": 0, + "length": 0 + }, + { + "id": 865, + "num": 14, + "color": 7, + "special": 0, + "length": 2 + }, + { + "id": 866, + "num": 16, + "color": 7, + "special": 0, + "length": 0 + }, + { + "id": 867, + "num": 5, + "color": 8, + "special": 0, + "length": 2 + }, + { + "id": 868, + "num": 7, + "color": 8, + "special": 0, + "length": 0 + } + ] + ] +} \ No newline at end of file diff --git a/assets/custom/Json/level851.json.meta b/assets/custom/Json/level851.json.meta new file mode 100644 index 0000000..e5bcd07 --- /dev/null +++ b/assets/custom/Json/level851.json.meta @@ -0,0 +1,6 @@ +{ + "ver": "1.0.2", + "uuid": "f5a1b1f8-26b0-4a4c-a7ac-01f48e8acb13", + "importer": "json", + "subMetas": {} +} \ No newline at end of file