fix: 传送门图层

This commit is contained in:
unanmed 2024-09-03 20:43:27 +08:00
parent 977a6784b9
commit dcb952f92d
13 changed files with 247 additions and 122 deletions

View File

@ -98,7 +98,7 @@ var enemys_fcae963b_31c9_42b4_b48c_bb48d09f3f80 =
"E505": {"name":"勇气史塔茹","hp":3000,"atk":500,"def":250,"money":1,"exp":35,"point":0,"special":[8],"together":10},
"E511": {"name":"山野蝙蝠","hp":1500,"atk":300,"def":120,"money":1,"exp":37,"point":0,"special":[5]},
"E512": {"name":"专业盗贼","hp":1800,"atk":400,"def":170,"money":1,"exp":40,"point":0,"special":[5]},
"E513": {"name":"黑影剑客","hp":10000,"atk":20000,"def":null,"money":5,"exp":600,"point":null,"special":[6],"n":6},
"E513": {"name":"黑影剑客","hp":10000,"atk":20000,"def":0,"money":5,"exp":600,"point":null,"special":[6],"n":6},
"E514": {"name":"雪原剑客","hp":10000,"atk":3000,"def":500,"money":2,"exp":110,"point":0,"special":[5,19]},
"E515": {"name":"勇气之剑","hp":2500,"atk":550,"def":270,"money":2,"exp":40,"point":0,"special":[5,10],"courage":500},
"E517": {"name":"勇气之盾","hp":4000,"atk":400,"def":350,"money":1,"exp":30,"point":0,"special":[9]},

View File

@ -36,6 +36,13 @@ main.floors.MT73=
7,
14
]
},
"0,7": {
"floorId": "MT81",
"loc": [
14,
7
]
}
},
"beforeBattle": {},

View File

@ -53,7 +53,7 @@ main.floors.MT76=
[648,376, 34,648, 0,648,648,492,648,648, 0,648,484,376,648],
[648,648,648,648,682,648, 27, 29, 28,648,513,648,648,671,648],
[648, 0,682, 33, 0,648,648,578,648,648, 0,232, 27, 33,648],
[648,484,648, 0,381, 0,648, 0,657,484, 0,648, 29, 28,648],
[648,484,648, 0,381, 0,648,103,657,484, 0,648, 29, 28,648],
[648, 0,648,648,648,492,648, 0,648, 0,381,648,648,494,648],
[ 92, 0,648,376, 0,378,648,682,648,648,492,648, 92, 0, 94],
[648, 0,492, 0, 22, 0,648, 27,484, 29, 0,648,648,648,648],

View File

@ -47,12 +47,12 @@ main.floors.MT77=
[648, 0,648, 0,648,618,648,648,648,648,232,648,648,648,648],
[648,538,403,538,492,378, 0,677, 0,484, 0, 0,484, 0,648],
[648,648,648,648,648,648,648,648,658,648,648,492,648,682,648],
[648,396,390,658,491,378,491,671, 0, 0,491, 0,648,482,648],
[648,396,390,658,491,378,491,671,103, 0,491, 0,648,482,648],
[648,648,648,648,648,648,648,648,658,648,648,682,648, 0, 94],
[648,682, 0,682, 0,376,677,648, 0,491,648, 0,648,482,648],
[648, 0,648, 0,648,648, 0,648,578,648,648,492,648,682,648],
[648, 27,599, 28, 0,492,484,648, 29, 0,648, 27, 0, 28,648],
[648,648,648,648, 0,648, 0,658, 0, 29,578, 0, 29, 0,648],
[648,648,648,648, 0,648, 0,658,103, 29,578, 0, 29, 0,648],
[648,403,378,648,513,648,648,648,658,648,648,648,492,648,648],
[648,376,484,618, 0,484, 0,658, 0, 0,648, 0, 0,484,648],
[648,648,648,648,648,648,648,648,648,648,648,648, 93,648,648]

View File

@ -45,6 +45,13 @@ main.floors.MT78=
14,
6
]
},
"7,14": {
"floorId": "MT81",
"loc": [
7,
0
]
}
},
"beforeBattle": {},

View File

@ -45,6 +45,13 @@ main.floors.MT79=
14,
7
]
},
"7,14": {
"floorId": "MT82",
"loc": [
7,
0
]
}
},
"beforeBattle": {},
@ -62,13 +69,13 @@ main.floors.MT79=
[648, 0, 29,648, 0,484, 0,492, 0, 29, 0,492, 0, 0,648],
[648,648,538,648,494,648,648,648,648,648,658,648, 0, 0,648],
[648, 0, 0,378, 0,648,376, 0,378,648, 0,578, 0, 0, 94],
[ 92, 0,491, 0, 0,648, 0,487, 0,648, 0,648,648,494,648],
[ 92, 0,491, 0,103,648, 0,487, 0,648, 0,648,648,494,648],
[648,671,648,648,232,648,378, 0,376,648,484, 0,648, 0,648],
[648, 28,403,648, 0,648,648,648,648,648,648,682,648, 0,648],
[648,376,491,492, 0,648, 0,482, 0,657, 29, 0,648, 0, 94],
[648,492,648,648,648,648,648,648,648,648, 0,482,492, 0,648],
[648, 0,403,648, 0,648,484, 0,484,648,658,648,648,513,648],
[648, 27,491,599, 28,578, 0, 0, 0,492, 0, 0,484, 0,648],
[648, 27,491,599, 28,578, 0,103, 0,492, 0, 0,484, 0,648],
[648,648,648,648,648,648,648, 93,648,648,648,648,648,648,648]
],
"bgmap": [

View File

@ -32,6 +32,13 @@ main.floors.MT80=
0,
7
]
},
"7,14": {
"floorId": "MT83",
"loc": [
7,
0
]
}
},
"beforeBattle": {},
@ -43,19 +50,19 @@ main.floors.MT80=
"cannotMoveIn": {},
"map": [
[648,648,648,648,648,648,648,648,648,648,648,648,648,648,648],
[648,381, 0,484, 0,492, 0, 93,513, 0,618, 0, 0, 0,648],
[648,648,648,648,682,648,648,660,648, 0,648,648,648, 0,648],
[648, 0,484,648, 0, 0,648,648,648, 0,648, 0,648, 0,648],
[648, 27, 29,658, 0, 0,672, 0,657, 0,494, 0,599, 0,648],
[648,648,648,648,492,648,648,648,648,232,648,648,648,648,648],
[648, 0,618, 0, 0,648, 0, 0,648, 0, 0, 0,578, 0,648],
[648, 0,648, 0, 0,648, 0, 0,658, 0, 0, 0,648, 0, 94],
[648, 0,648, 0, 0,682, 0, 0,648,492,648,682,648, 0,648],
[648,494,648,648,648,648,659,648,648, 0,648, 0,648, 0,648],
[648, 0,648, 0, 0,682, 0, 0,494, 0,658, 0,657, 0,648],
[648, 0,648,492,648,648,648,232,648,648,648, 0,648,648,648],
[648, 0,648, 0, 0, 0,648, 0, 0, 0,648,682,648, 0,648],
[648, 0,671, 0, 0, 0,232, 0, 0, 0,677,491,578, 0,648],
[648,381, 0,484, 0,492,376, 93,513, 0,618,484,376,484,648],
[648,648,648,648,682,648,648,660,648, 0,648,648,648,378,648],
[648, 0,484,648, 0,484,648,648,648,487,648,396,648,381,648],
[648, 27, 29,658,376,103,672, 0,657, 0,494,403,599, 21,648],
[648,648,648,648,492,648,648,494,648,232,648,648,648,648,648],
[648,491,618, 0, 27,648, 28, 0,648, 0,482, 0,578, 0,648],
[648, 0,648, 21,482,648,482, 29,658, 0, 29,103,648, 0, 94],
[648,376,648, 0, 28,682, 27, 0,648,492,648,682,648,484,648],
[648,494,648,648,648,648,659,648,648,484,648, 0,648, 0,648],
[648,378,648, 0,484,682, 0,376,494, 28,658,491,657, 0,648],
[648,381,648,492,648,648,648,232,648,648,648, 0,648,492,648],
[648,491,648,482, 0, 28,648,103, 0, 0,648,682,648,491,648],
[648, 0,671, 0, 29, 0,677, 0,484, 0,677,491,578,491,648],
[648,648,648,648,648,648,648, 93,648,648,648,648,648,648,648]
],
"bgmap": [

View File

@ -17,7 +17,29 @@ main.floors.MT81=
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"changeFloor": {
"14,7": {
"floorId": "MT73",
"loc": [
0,
7
]
},
"7,0": {
"floorId": "MT78",
"loc": [
7,
14
]
},
"0,7": {
"floorId": "MT82",
"loc": [
14,
7
]
}
},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
@ -26,21 +48,21 @@ main.floors.MT81=
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
[648,648,648,648,648,648,648, 91,648,648,648,648,648,648,648],
[648, 27, 0, 29, 0, 28,648, 0, 0,578, 0,484, 0,249,648],
[648,671,648,648,648,682,648,484, 0,648,492,648,648, 0,648],
[648, 0,378,648,682,484,648,648,232,648, 28, 29,648,484,648],
[648,381,491,494, 0,648,648, 0,484,648,484, 27,648, 0,648],
[648, 0,376,648,682, 0,648,103,376,648,658,648,648,648,648],
[648,679,648,648,648,491,658, 0,484,658, 0,648,482, 0,648],
[ 92, 0,484,381,648,648,648,648,648,648, 0,659, 0, 0, 94],
[648,648,648,677,648, 0,491, 0,378,492, 0,648,482, 0,648],
[648, 27, 0,484,648,648,648,648,677,648,491,648,648,648,648],
[648, 0, 29,103,682,376,484,648,484,648, 0,682, 0, 27,648],
[648,648,648,494,648,648,659,648, 0,682, 0,648,491, 0,648],
[648, 0,648, 0,648,484, 0,648,492,648,648,648,677,648,648],
[648,484,249,484,578, 0,378,648, 0, 21, 0, 28, 0, 27,648],
[648,648,648,648,648,648,648,648,648,648,648,648,648,648,648]
],
"bgmap": [

View File

@ -1,45 +1,79 @@
main.floors.MT82=
{
"floorId": "MT82",
"title": "苍蓝之殿-左上",
"name": "82",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
"floorId": "MT82",
"title": "苍蓝之殿-左上",
"name": "82",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {
"14,7": {
"floorId": "MT81",
"loc": [
0,
7
]
},
"7,0": {
"floorId": "MT79",
"loc": [
7,
14
]
},
"0,7": {
"floorId": "MT83",
"loc": [
14,
7
]
}
},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[648,648,648,648,648,648,648, 91,648,648,648,648,648,648,648],
[648,482, 29,658, 29,482,249, 0,491,513,484,648, 29, 28,648],
[648,376,482,648,482,378,648, 0, 0,648, 0,671, 27,491,648],
[648,648,648,648,672,648,648,648,232,648,648,648,648,648,648],
[648,378,491,648,484,484,494, 0,491,648, 0,492,484, 21,648],
[648,381,376,494,484,484,648,103, 0,492, 28,648, 27, 29,648],
[648,671,648,648,648,648,648,578,648,648, 0,648,648,677,648],
[ 92, 0,484,378, 0,599,648, 0, 27, 0,682,648,484, 0, 94],
[648,492,648,648,648, 0,648,648,648,648,484,658, 0, 0,648],
[648, 0,376,484, 0,232,648, 27, 28,648,492,648,648,657,648],
[648,677,648,648,648, 0,679,484, 21,648, 0,657, 0, 0,648],
[648, 0,484, 0,492, 0,648, 28, 27,648, 0,648, 0,482,648],
[648,648,648,618,648, 28,648,648,648,648, 27,648,648,648,648],
[648,378,376,381,648, 0,513, 0,484,578, 0,492,484,484,648],
[648,648,648,648,648,648,648,648,648,648,648,648,648,648,648]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}

View File

@ -1,45 +1,72 @@
main.floors.MT83=
{
"floorId": "MT83",
"title": "苍蓝之殿-左上",
"name": "83",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
"floorId": "MT83",
"title": "苍蓝之殿-左上",
"name": "83",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {
"14,7": {
"floorId": "MT82",
"loc": [
0,
7
]
},
"7,0": {
"floorId": "MT80",
"loc": [
7,
14
]
}
},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[648,648,648,648,648,648,648, 91,648,648,648,648,648,648,648],
[648, 0,491,378, 0,232, 0, 0, 0,671, 0, 27,484, 0,648],
[648,679,648,648,494,648,484, 0,484,648,494,648,648,677,648],
[648, 29, 0,618, 0,648,648,648,648,648, 0,658, 0, 29,648],
[648, 0,484,648,396,648, 28, 22, 27,648,390,648,484, 0,648],
[648,682,648,648, 0,599, 27,491, 28,672, 0,648,648,682,648],
[648, 0,484,648,648,648,648,494,648,648,648,648,484, 0,648],
[ 92, 0, 0,648, 0,491, 0,538, 0,376, 0,648, 0, 0, 94],
[648,648,679,648,378,103,648,648,648,103,378,648,513,648,648],
[648,487, 0,648, 0,376, 0,492, 0,491, 0,648, 0,484,648],
[648,671,648,648,648,648,658,648,658,648,648,648,648,232,648],
[648, 0,376,491, 0,648,484,648,484,648, 0,484, 28, 0,648],
[648,492,648,677,648,648,682,648,682,648,648,578,648,492,648],
[648, 27, 0,484,657, 0,484,494,484, 0,657,484, 0, 28,648],
[648,648,648,648,648,648,648,648,648,648,648,648,648,648,648]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}

View File

@ -51,7 +51,7 @@ Mota.require('var', 'loading').once('loaded', () => {
layer.extends(viewport);
render.appendChild(layer);
// console.log(render);
console.log(render);
});
Mota.require('var', 'hook').on('reset', () => {

View File

@ -110,6 +110,21 @@ export namespace BluePalace {
{ fx: 2, fy: 2, dir: 'up', tx: 7, ty: 5, toDir: 'down' },
{ fx: 4, fy: 11, dir: 'up', tx: 5, ty: 7, toDir: 'right' },
{ fx: 7, fy: 11, dir: 'down', tx: 7, ty: 9, toDir: 'up' }
],
MT80: [
{ fx: 2, fy: 10, dir: 'right', tx: 1, ty: 2, toDir: 'down' },
{ fx: 2, fy: 10, dir: 'left', tx: 13, ty: 5, toDir: 'up' }
],
MT81: [
{ fx: 4, fy: 8, dir: 'right', tx: 1, ty: 11, toDir: 'down' },
{ fx: 7, fy: 13, dir: 'right', tx: 13, ty: 5, toDir: 'up' }
],
MT82: [{ fx: 9, fy: 10, dir: 'left', tx: 6, ty: 5, toDir: 'left' }],
MT83: [
{ fx: 5, fy: 11, dir: 'left', tx: 9, ty: 11, toDir: 'right' },
{ fx: 5, fy: 3, dir: 'left', tx: 9, ty: 3, toDir: 'right' },
{ fx: 2, fy: 2, dir: 'up', tx: 2, ty: 12, toDir: 'down' },
{ fx: 12, fy: 2, dir: 'up', tx: 12, ty: 12, toDir: 'down' }
]
};
loading.once('coreInit', initPortals);
@ -211,6 +226,5 @@ export namespace BluePalace {
function initPortals() {
generatePortalMap();
console.log(portalMap);
}
}

View File

@ -41,7 +41,7 @@ export class LayerGroupPortal implements ILayerGroupRenderExtends {
this.portal = new Portal();
this.portal.setHD(true);
this.portal.size(group.width, group.height);
group.getLayer('event')?.appendChild(this.portal);
group.appendChild(this.portal);
this.listen();
} else {
logger.error(
@ -105,10 +105,10 @@ export class Portal extends Sprite {
}
});
this.setZIndex(90);
this.setRenderFn((canvas, transform) => {
// console.time();
this.renderPortal(canvas);
// console.timeEnd();
});
}