修复 跳跃门BUG
This commit is contained in:
parent
bf47af6600
commit
79b9eee573
|
|
@ -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++) {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
376
assets/custom/Json/level1443.json
Normal file
376
assets/custom/Json/level1443.json
Normal file
|
|
@ -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
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
6
assets/custom/Json/level1443.json.meta
Normal file
6
assets/custom/Json/level1443.json.meta
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"ver": "1.0.2",
|
||||
"uuid": "0ec41cfb-719e-4e78-bc99-efab7c8a861a",
|
||||
"importer": "json",
|
||||
"subMetas": {}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user