This commit is contained in:
COMPUTER\EDY 2026-02-06 17:52:06 +08:00
parent 05bdbccfff
commit efa33f5936
6 changed files with 834 additions and 396 deletions

View File

@ -162,26 +162,12 @@ export default class Wall extends cc.Component {
this.posY = posY;
if (direction) this.direction = direction;
// console.log("门方向赋值",direction);
if (direction == "up") {
this.node.parent.zIndex = 100 + this.posX - this.posY * 3;
}
else if (direction == "down" || direction == "right") {
this.node.parent.zIndex = 20 + this.posX - this.posY * 3;
}
else if (direction == "downleft" || direction == "downright" || direction == "rightup"
|| direction == "rightdown") {
this.node.parent.zIndex = 20 + this.posX - this.posY * 3;
}
else if (direction == "left" || direction == "leftup" || direction == "upleft") {
this.node.parent.zIndex = 70 + this.posX - this.posY * 3;
}
else if (direction == "leftdown" || direction == "upright") {
this.node.parent.zIndex = 100 + this.posX - this.posY * 3;
}
else this.node.parent.zIndex = 70 + this.posX - this.posY * 3;
this.setZindex(direction);
MapConroler._instance.mapBlocksWall[this.posX][this.posY].getComponent("MapBlock").block_Id = "Wall";
//console.log(this.posX,this.posY,MapConroler._instance.mapBlocksWall[this.posX][this.posY].getComponent("MapBlock").block_Id);
// console.log(this.posX,this.posY,this.node.zIndex);
//this.node.getChildByName("num").getComponent(cc.Label).string = direction;
@ -203,11 +189,20 @@ export default class Wall extends cc.Component {
//旋转门
let name2 = "rotate" + this.wall_Info.length;
this.revolvingNode = this.node.parent.getChildByName("revolving").getChildByName(name2);
this.jumpNode = this.node.parent.getChildByName("jump");
// if (this.jumpNode) {
// this.jumpNode.active = true;
// console.log("跳跃门 一个");
// }
//跳跃门
this.jumpNode = this.node.parent.getChildByName("jump");
if (this.wall_Info.jump != undefined) {
this.jumpNode.active = true;
if (this.wall_Info.length == 0 && (this.node.parent.name == "right" || this.node.parent.name == "left")) {
debugger;
this.node.parent.zIndex = 999;
}
}
if (this.wall_Info.colorArray) {
@ -247,6 +242,27 @@ export default class Wall extends cc.Component {
}
setZindex(direction) {
// console.log("门方向赋值",direction);
if (direction == "up") {
this.node.parent.zIndex = 100 + this.posX - this.posY * 3;
}
else if (direction == "down" || direction == "right") {
this.node.parent.zIndex = 20 + this.posX - this.posY * 3;
}
else if (direction == "downleft" || direction == "downright" || direction == "rightup"
|| direction == "rightdown") {
this.node.parent.zIndex = 20 + this.posX - this.posY * 3;
}
else if (direction == "left" || direction == "leftup" || direction == "upleft") {
this.node.parent.zIndex = 70 + this.posX - this.posY * 3;
}
else if (direction == "leftdown" || direction == "upright") {
this.node.parent.zIndex = 100 + this.posX - this.posY * 3;
}
else this.node.parent.zIndex = 70 + this.posX - this.posY * 3;
}
setTeamDoors(over) {
if (this.wall_Info.length > 0) {
this.setLongAndShort();

View File

@ -2,7 +2,7 @@
"LEVEL_INFO": [
{
"risefall": [],
"id": "1049",
"id": "1158",
"map": [
8,
8
@ -28,6 +28,16 @@
"x": 5,
"y": 1,
"z": 0
},
{
"x": 4,
"y": 2,
"z": 0
},
{
"x": 3,
"y": 2,
"z": 0
}
]
}
@ -35,30 +45,30 @@
"BLOCK_INFO": [
[
{
"block": 2,
"color": 4,
"block": 0,
"color": 3,
"type": 0,
"position": {
"x": -240,
"y": 120,
"x": -120,
"y": 0,
"z": 0
},
"id": 210
},
{
"block": 20,
"color": 2,
"block": 0,
"color": 5,
"type": 0,
"position": {
"x": -120,
"y": -120,
"x": 240,
"y": 0,
"z": 0
},
"id": 220
},
{
"block": 2,
"color": 3,
"color": 2,
"type": 0,
"position": {
"x": -240,
@ -69,57 +79,63 @@
},
{
"block": 2,
"color": 6,
"type": 0,
"position": {
"x": -120,
"y": 0,
"z": 0
},
"id": 240
},
{
"block": 19,
"color": 1,
"type": 0,
"position": {
"x": 360,
"y": -120,
"z": 0
},
"id": 250
},
{
"block": 2,
"color": 5,
"type": 0,
"position": {
"x": 360,
"y": 120,
"z": 0
},
"id": 260
},
{
"block": 2,
"color": 9,
"color": 4,
"type": 0,
"position": {
"x": 360,
"y": -360,
"z": 0
},
"id": 240
},
{
"block": 2,
"color": 10,
"type": 1,
"position": {
"x": -240,
"y": 120,
"z": 0
},
"stacking": 8,
"colorChange": true,
"id": 250
},
{
"block": 2,
"color": 5,
"type": 1,
"position": {
"x": 360,
"y": 120,
"z": 0
},
"stacking": 9,
"colorChange": true,
"id": 260
},
{
"block": 2,
"color": 3,
"type": 9,
"position": {
"x": 120,
"y": 120,
"z": 0
},
"adhesiveTime": 2,
"id": 270
},
{
"block": 0,
"color": 11,
"type": 0,
"block": 2,
"color": 6,
"type": 9,
"position": {
"x": 240,
"y": -240,
"x": 0,
"y": 120,
"z": 0
},
"adhesiveTime": 1,
"id": 280
},
{
@ -127,153 +143,218 @@
"color": 11,
"type": 0,
"position": {
"x": -120,
"y": -240,
"x": 240,
"y": 240,
"z": 0
},
"id": 290
},
{
"block": 2,
"color": 10,
"block": 0,
"color": 11,
"type": 0,
"position": {
"x": 240,
"y": 0,
"x": -120,
"y": 240,
"z": 0
},
"id": 300
},
{
"block": 1,
"color": 2,
"type": 8,
"block": 21,
"color": 9,
"type": 16,
"position": {
"x": 120,
"x": 240,
"y": -240,
"z": 0
},
"questionTime": 9,
"id": 310
},
{
"block": 0,
"block": 22,
"color": 8,
"type": 9,
"type": 16,
"position": {
"x": 120,
"y": -120,
"x": -120,
"y": -240,
"z": 0
},
"adhesiveTime": 2,
"questionTime": 5,
"id": 320
},
{
"block": 0,
"color": 5,
"color": 10,
"type": 9,
"position": {
"x": 0,
"y": -120,
"y": 0,
"z": 0
},
"adhesiveTime": 1,
"adhesiveTime": 2,
"floor": 1,
"floorTime": 7,
"floorMove": true,
"id": 330
},
{
"block": 5,
"color": 7,
"type": 16,
"block": 0,
"color": 9,
"type": 9,
"position": {
"x": 120,
"y": 0,
"z": 0
},
"questionTime": 6,
"adhesiveTime": 1,
"id": 340
},
{
"block": 0,
"color": 2,
"type": 0,
"position": {
"x": 120,
"y": -120,
"z": 0
},
"floor": 2,
"floorTime": 2,
"floorMove": true,
"id": 350
},
{
"block": 0,
"color": 4,
"type": 16,
"position": {
"x": 0,
"y": -120,
"z": 0
},
"questionTime": 5,
"floor": 2,
"floorTime": 2,
"floorMove": true,
"id": 360
}
]
],
"WALL_INFO": [
[
{
"id": 1050,
"num": 24,
"color": 3,
"special": 0,
"length": 2,
"colorArray": "27"
},
{
"id": 1051,
"num": 25,
"color": 3,
"special": 0,
"length": 0,
"colorArray": "27"
},
{
"id": 1052,
"num": 20,
"color": 6,
"special": 0,
"length": 2,
"colorArray": "53"
},
{
"id": 1053,
"num": 21,
"color": 6,
"special": 0,
"length": 0,
"colorArray": "53"
},
{
"id": 1054,
"num": 4,
"color": 1,
"special": 0,
"length": 2,
"colorArray": "08"
},
{
"id": 1055,
"num": 5,
"color": 1,
"special": 0,
"length": 0,
"colorArray": "08"
},
{
"id": 1056,
"num": 12,
"color": 2,
"special": 0,
"length": 2,
"colorArray": "16"
},
{
"id": 1057,
"num": 14,
"color": 2,
"special": 0,
"length": 0,
"colorArray": "16"
},
{
"id": 1058,
"id": 1159,
"num": 0,
"color": 10,
"special": 0,
"length": 2,
"colorArray": "944"
"color": 9,
"special": 7,
"length": 2
},
{
"id": 1059,
"id": 1160,
"num": 1,
"color": 10,
"special": 0,
"color": 9,
"special": 7,
"length": 0,
"colorArray": "944"
"jump": true,
"jumpDirection": true
},
{
"id": 1161,
"num": 4,
"color": 6,
"special": 3,
"length": 2,
"freeze": 8
},
{
"id": 1162,
"num": 5,
"color": 6,
"special": 3,
"length": 0,
"freeze": 8
},
{
"id": 1163,
"num": 10,
"color": 4,
"special": 7,
"length": 2
},
{
"id": 1164,
"num": 13,
"color": 4,
"special": 7,
"length": 0,
"jump": true,
"jumpDirection": true
},
{
"id": 1165,
"num": 16,
"color": 10,
"special": 7,
"length": 2
},
{
"id": 1166,
"num": 19,
"color": 10,
"special": 7,
"length": 0,
"jump": true,
"jumpDirection": true
},
{
"id": 1167,
"num": 26,
"color": 8,
"special": 3,
"length": 2,
"freeze": 4
},
{
"id": 1168,
"num": 27,
"color": 8,
"special": 3,
"length": 0,
"freeze": 4
},
{
"id": 1169,
"num": 22,
"color": 2,
"special": 7,
"length": 2
},
{
"id": 1170,
"num": 23,
"color": 2,
"special": 7,
"length": 0,
"jump": true,
"jumpDirection": true
},
{
"id": 1171,
"num": 20,
"color": 3,
"special": 3,
"length": 1,
"freeze": 9
},
{
"id": 1172,
"num": 6,
"color": 5,
"special": 3,
"length": 1,
"freeze": 6
}
]
]

View File

@ -2,13 +2,23 @@
"LEVEL_INFO": [
{
"risefall": [],
"id": "1050",
"id": "1157",
"map": [
8,
9
8
],
"time": 90,
"time": 80,
"gap": [
{
"x": 1,
"y": 5,
"z": 0
},
{
"x": 1,
"y": 6,
"z": 0
},
{
"x": 6,
"y": 5,
@ -16,7 +26,7 @@
},
{
"x": 6,
"y": 4,
"y": 6,
"z": 0
}
]
@ -25,346 +35,310 @@
"BLOCK_INFO": [
[
{
"block": 20,
"block": 1,
"color": 4,
"type": 0,
"position": {
"x": -120,
"y": -60,
"x": 120,
"y": 0,
"z": 0
},
"id": 210
},
{
"block": 2,
"color": 10,
"type": 0,
"block": 6,
"color": 4,
"type": 9,
"position": {
"x": -240,
"y": -420,
"x": 360,
"y": -360,
"z": 0
},
"adhesiveTime": 2,
"id": 220
},
{
"block": 2,
"color": 5,
"type": 0,
"block": 0,
"color": 4,
"type": 9,
"position": {
"x": -120,
"y": -300,
"x": 240,
"y": -360,
"z": 0
},
"adhesiveTime": 1,
"id": 230
},
{
"block": 2,
"color": 2,
"color": 8,
"type": 0,
"position": {
"x": 360,
"y": -300,
"x": 0,
"y": -360,
"z": 0
},
"id": 240
},
{
"block": 2,
"color": 2,
"color": 10,
"type": 0,
"position": {
"x": 0,
"y": -420,
"x": 120,
"y": -360,
"z": 0
},
"id": 250
},
{
"block": 1,
"color": 8,
"type": 0,
"block": 10,
"color": 7,
"type": 9,
"position": {
"x": 240,
"y": -60,
"x": -240,
"y": -360,
"z": 0
},
"adhesiveTime": 2,
"id": 260
},
{
"block": 0,
"color": 11,
"type": 0,
"color": 7,
"type": 9,
"position": {
"x": -120,
"y": 180,
"z": 0
},
"id": 270
},
{
"block": 2,
"color": 3,
"type": 0,
"position": {
"x": 360,
"y": 180,
"z": 0
},
"id": 280
},
{
"block": 0,
"color": 4,
"type": 9,
"position": {
"x": 0,
"y": 60,
"z": 0
},
"adhesiveTime": 2,
"id": 290
},
{
"block": 0,
"color": 3,
"type": 9,
"position": {
"x": 0,
"y": -60,
"y": -360,
"z": 0
},
"adhesiveTime": 1,
"id": 270
},
{
"block": 0,
"color": 5,
"type": 0,
"position": {
"x": -240,
"y": 0,
"z": 0
},
"lock": false,
"id": 280
},
{
"block": 1,
"color": 3,
"type": 8,
"position": {
"x": 120,
"y": 240,
"z": 0
},
"id": 290
},
{
"block": 1,
"color": 6,
"type": 1,
"position": {
"x": 120,
"y": -120,
"z": 0
},
"stacking": 7,
"colorChange": true,
"id": 300
},
{
"block": 2,
"color": 8,
"type": 17,
"color": 6,
"type": 1,
"position": {
"x": 0,
"y": 180,
"x": 240,
"y": 120,
"z": 0
},
"boomTime": 1,
"stacking": 1,
"colorChange": true,
"id": 310
},
{
"block": 1,
"color": 5,
"type": 9,
"position": {
"x": 240,
"y": -300,
"z": 0
},
"adhesiveTime": 2,
"id": 330
},
{
"block": 1,
"color": 5,
"type": 9,
"position": {
"x": 360,
"y": -420,
"z": 0
},
"adhesiveTime": 1,
"id": 340
},
{
"block": 1,
"color": 5,
"type": 0,
"position": {
"x": 240,
"y": -180,
"z": 0
},
"lock": true,
"id": 350
},
{
"block": 2,
"color": 7,
"type": 8,
"position": {
"x": 240,
"y": 180,
"z": 0
},
"id": 360
},
{
"block": 1,
"color": 9,
"type": 0,
"color": 5,
"type": 1,
"position": {
"x": -120,
"y": 300,
"y": 120,
"z": 0
},
"lock": true,
"id": 370
"stacking": 2,
"colorChange": true,
"id": 320
},
{
"block": 0,
"color": 9,
"type": 16,
"color": 6,
"type": 0,
"position": {
"x": 0,
"y": -180,
"x": 360,
"y": 0,
"z": 0
},
"questionTime": 11,
"id": 380
},
{
"block": 4,
"color": 9,
"type": 17,
"position": {
"x": 120,
"y": 60,
"z": 0
},
"boomTime": 4,
"id": 380
"id": 330
}
]
],
"WALL_INFO": [
[
{
"id": 1051,
"id": 1158,
"num": 0,
"color": 8,
"color": 1,
"special": 0,
"length": 2
},
{
"id": 1052,
"id": 1159,
"num": 1,
"color": 8,
"color": 1,
"special": 0,
"length": 0
},
{
"id": 1053,
"num": 26,
"id": 1160,
"num": 2,
"color": 10,
"special": 0,
"length": 2
},
{
"id": 1161,
"num": 3,
"color": 10,
"special": 0,
"length": 0
},
{
"id": 1162,
"num": 7,
"color": 6,
"special": 7,
"length": 1,
"jump": true,
"jumpDirection": true
},
{
"id": 1163,
"num": 9,
"color": 4,
"special": 0,
"length": 2
},
{
"id": 1054,
"num": 27,
"id": 1164,
"num": 11,
"color": 4,
"special": 0,
"length": 0
},
{
"id": 1055,
"num": 5,
"color": 10,
"special": 3,
"length": 2,
"freeze": 8
"id": 1165,
"num": 13,
"color": 7,
"special": 0,
"length": 2
},
{
"id": 1056,
"num": 6,
"color": 10,
"special": 3,
"length": 0,
"freeze": 8
},
{
"id": 1057,
"num": 24,
"color": 3,
"special": 3,
"length": 2,
"freeze": 10
},
{
"id": 1058,
"num": 25,
"color": 3,
"special": 3,
"length": 0,
"freeze": 10
},
{
"id": 1059,
"id": 1166,
"num": 15,
"color": 7,
"special": 3,
"special": 0,
"length": 0
},
{
"id": 1167,
"num": 19,
"color": 5,
"special": 7,
"length": 1,
"freeze": 6
"jump": true,
"jumpDirection": true
},
{
"id": 1060,
"num": 2,
"id": 1168,
"num": 22,
"color": 8,
"special": 0,
"length": 2
},
{
"id": 1169,
"num": 23,
"color": 8,
"special": 0,
"length": 0
},
{
"id": 1170,
"num": 20,
"color": 2,
"special": 0,
"length": 2,
"longAndShort": 12,
"order": true
"length": 2
},
{
"id": 1061,
"num": 3,
"id": 1171,
"num": 21,
"color": 2,
"special": 0,
"length": 0,
"longAndShort": 12,
"order": true
"length": 0
},
{
"id": 1062,
"num": 9,
"color": 9,
"special": 0,
"length": 2,
"longAndShort": 12,
"order": true
},
{
"id": 1063,
"num": 11,
"color": 9,
"special": 0,
"length": 0,
"longAndShort": 12,
"order": true
},
{
"id": 1064,
"num": 10,
"color": 5,
"special": 0,
"length": 3,
"longAndShort": 13,
"order": false
},
{
"id": 1065,
"num": 12,
"color": 5,
"special": 0,
"length": 0,
"longAndShort": 13,
"order": false
},
{
"id": 1066,
"id": 1172,
"num": 14,
"color": 5,
"special": 0,
"special": 7,
"length": 2
},
{
"id": 1173,
"num": 16,
"color": 5,
"special": 7,
"length": 0,
"longAndShort": 13,
"order": false
"jump": true,
"jumpDirection": true
},
{
"id": 1174,
"num": 10,
"color": 3,
"special": 0,
"length": 2
},
{
"id": 1175,
"num": 12,
"color": 3,
"special": 0,
"length": 0
},
{
"id": 1176,
"num": 4,
"color": 6,
"special": 7,
"length": 2
},
{
"id": 1177,
"num": 8,
"color": 6,
"special": 7,
"length": 0,
"jump": true,
"jumpDirection": true
}
]
]

View File

@ -50,8 +50,6 @@
"num": 12,
"color": 10,
"special": 0,
"jump": true,
"jumpDirection": true,
"length": 0
},
{
@ -66,7 +64,9 @@
"num": 1,
"color": 5,
"special": 0,
"length": 0
"length": 0,
"jump": true,
"jumpDirection": true
}
]
]

View File

@ -0,0 +1,361 @@
{
"LEVEL_INFO": [
{
"risefall": [],
"id": "1158",
"map": [
8,
8
],
"time": 120,
"gap": [
{
"x": 2,
"y": 1,
"z": 0
},
{
"x": 3,
"y": 1,
"z": 0
},
{
"x": 4,
"y": 1,
"z": 0
},
{
"x": 5,
"y": 1,
"z": 0
},
{
"x": 4,
"y": 2,
"z": 0
},
{
"x": 3,
"y": 2,
"z": 0
}
]
}
],
"BLOCK_INFO": [
[
{
"block": 0,
"color": 3,
"type": 0,
"position": {
"x": -120,
"y": 0,
"z": 0
},
"id": 210
},
{
"block": 0,
"color": 5,
"type": 0,
"position": {
"x": 240,
"y": 0,
"z": 0
},
"id": 220
},
{
"block": 2,
"color": 2,
"type": 0,
"position": {
"x": -240,
"y": -360,
"z": 0
},
"id": 230
},
{
"block": 2,
"color": 4,
"type": 0,
"position": {
"x": 360,
"y": -360,
"z": 0
},
"id": 240
},
{
"block": 2,
"color": 10,
"type": 1,
"position": {
"x": -240,
"y": 120,
"z": 0
},
"stacking": 8,
"colorChange": true,
"id": 250
},
{
"block": 2,
"color": 5,
"type": 1,
"position": {
"x": 360,
"y": 120,
"z": 0
},
"stacking": 9,
"colorChange": true,
"id": 260
},
{
"block": 2,
"color": 3,
"type": 9,
"position": {
"x": 120,
"y": 120,
"z": 0
},
"adhesiveTime": 2,
"id": 270
},
{
"block": 2,
"color": 6,
"type": 9,
"position": {
"x": 0,
"y": 120,
"z": 0
},
"adhesiveTime": 1,
"id": 280
},
{
"block": 0,
"color": 11,
"type": 0,
"position": {
"x": 240,
"y": 240,
"z": 0
},
"id": 290
},
{
"block": 0,
"color": 11,
"type": 0,
"position": {
"x": -120,
"y": 240,
"z": 0
},
"id": 300
},
{
"block": 21,
"color": 9,
"type": 16,
"position": {
"x": 240,
"y": -240,
"z": 0
},
"questionTime": 9,
"id": 310
},
{
"block": 22,
"color": 8,
"type": 16,
"position": {
"x": -120,
"y": -240,
"z": 0
},
"questionTime": 5,
"id": 320
},
{
"block": 0,
"color": 10,
"type": 9,
"position": {
"x": 0,
"y": 0,
"z": 0
},
"adhesiveTime": 2,
"floor": 1,
"floorTime": 7,
"floorMove": true,
"id": 330
},
{
"block": 0,
"color": 9,
"type": 9,
"position": {
"x": 120,
"y": 0,
"z": 0
},
"adhesiveTime": 1,
"id": 340
},
{
"block": 0,
"color": 2,
"type": 0,
"position": {
"x": 120,
"y": -120,
"z": 0
},
"floor": 2,
"floorTime": 2,
"floorMove": true,
"id": 350
},
{
"block": 0,
"color": 4,
"type": 16,
"position": {
"x": 0,
"y": -120,
"z": 0
},
"questionTime": 5,
"floor": 2,
"floorTime": 2,
"floorMove": true,
"id": 360
}
]
],
"WALL_INFO": [
[
{
"id": 1159,
"num": 0,
"color": 9,
"special": 7,
"length": 2
},
{
"id": 1160,
"num": 1,
"color": 9,
"special": 7,
"length": 0,
"jump": true,
"jumpDirection": true
},
{
"id": 1161,
"num": 4,
"color": 6,
"special": 3,
"length": 2,
"freeze": 8
},
{
"id": 1162,
"num": 5,
"color": 6,
"special": 3,
"length": 0,
"freeze": 8
},
{
"id": 1163,
"num": 10,
"color": 4,
"special": 7,
"length": 2
},
{
"id": 1164,
"num": 13,
"color": 4,
"special": 7,
"length": 0,
"jump": true,
"jumpDirection": true
},
{
"id": 1165,
"num": 16,
"color": 10,
"special": 7,
"length": 2
},
{
"id": 1166,
"num": 19,
"color": 10,
"special": 7,
"length": 0,
"jump": true,
"jumpDirection": true
},
{
"id": 1167,
"num": 26,
"color": 8,
"special": 3,
"length": 2,
"freeze": 4
},
{
"id": 1168,
"num": 27,
"color": 8,
"special": 3,
"length": 0,
"freeze": 4
},
{
"id": 1169,
"num": 22,
"color": 2,
"special": 7,
"length": 2
},
{
"id": 1170,
"num": 23,
"color": 2,
"special": 7,
"length": 0,
"jump": true,
"jumpDirection": true
},
{
"id": 1171,
"num": 20,
"color": 3,
"special": 3,
"length": 1,
"freeze": 9
},
{
"id": 1172,
"num": 6,
"color": 5,
"special": 3,
"length": 1,
"freeze": 6
}
]
]
}

View File

@ -0,0 +1,6 @@
{
"ver": "1.0.2",
"uuid": "d1e926ee-562f-4b01-8584-96a4abad4732",
"importer": "json",
"subMetas": {}
}