yimengjiutian/project/floors/MT177.js

77 lines
2.4 KiB
JavaScript

main.floors.MT177=
{
"floorId": "MT177",
"title": "主塔 177 层",
"name": "177",
"width": 13,
"height": 13,
"canFlyTo": false,
"canFlyFrom": false,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [
{
"name": "yuzhou.jpg",
"canvas": "bg",
"x": 0,
"y": 0
}
],
"ratio": 1,
"defaultGround": "ground",
"bgm": "gaolikangzhi.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "var lastTime = core.getFlag('lastTime', 0);\n\nif (timestamp - lastTime > 60) {\n\tvar image = core.material.images.images[\"yuzhou.jpg\"];\n\tvar width = 416,\n\t\theight = 416;\n\n\tcore.canvas.bg.translate(width / 2, height / 2);\n\tcore.canvas.bg.rotate(Math.PI / 180 / 6);\n\tcore.canvas.bg.translate(-width / 2, -height / 2);\n\tcore.canvas.bg.drawImage(image, -150, -140);\n\n\tcore.setFlag('lastTime', timestamp);\n\n\tvar rotateTime = core.getFlag('rotateTime', 0);\n\trotateTime += 1;\n\tif (rotateTime >= 6 * 180) {\n\t\trotateTime -= 6 * 180;\n\t}\n\tcore.setFlag('rotateTime', rotateTime);\n}",
"events": {},
"changeFloor": {
"6,0": {
"floorId": "MT176",
"loc": [
6,
12
]
},
"12,6": {
"floorId": "MT178",
"loc": [
0,
6
]
}
},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 4, 4, 4, 4, 4, 4, 91, 4, 4, 4, 4, 4, 4],
[ 4, 0, 4, 0, 0, 4, 0, 4, 0, 0, 4, 0, 4],
[ 4, 0, 4, 0, 0, 4, 0, 4, 0, 0, 4, 0, 4],
[ 4, 0, 4, 0, 4, 4, 0, 4, 4, 0, 4, 0, 4],
[ 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4],
[ 4, 4, 4, 4, 4, 4, 0, 4, 4, 4, 4, 4, 4],
[ 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 94],
[ 4, 4, 4, 4, 0, 4, 4, 4, 0, 4, 4, 4, 4],
[ 4, 0, 4, 0, 0, 0, 4, 0, 0, 0, 4, 0, 4],
[ 4, 0, 4, 0, 0, 0, 4, 0, 4, 0, 4, 0, 4],
[ 4, 0, 4, 4, 4, 4, 4, 0, 4, 0, 0, 0, 4],
[ 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 4],
[ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}