更新修复BUG

This commit is contained in:
COMPUTER\EDY 2025-12-18 16:36:49 +08:00
parent 97f52fb8fa
commit 751b6ab7d8
5 changed files with 328 additions and 7 deletions

View File

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

View File

@ -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;

View File

@ -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;

View File

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

View File

@ -0,0 +1,6 @@
{
"ver": "1.0.2",
"uuid": "f5a1b1f8-26b0-4a4c-a7ac-01f48e8acb13",
"importer": "json",
"subMetas": {}
}