yimengjiutian/project/floors/MT164.js

572 lines
16 KiB
JavaScript

main.floors.MT164=
{
"floorId": "MT164",
"title": "最后的大学",
"name": "最后的大学",
"width": 13,
"height": 13,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [
{
"name": "yuzhou.jpg",
"canvas": "bg",
"x": 0,
"y": 0
}
],
"ratio": 1,
"defaultGround": "ground",
"bgm": "gaolikangzhi.mp3",
"firstArrive": [
{
"type": "setHeroOpacity",
"opacity": 1
},
{
"type": "setCurtain",
"time": 1000
},
{
"type": "showStatusBar"
},
{
"type": "setValue",
"name": "flag:__visited__",
"value": "{}"
},
{
"type": "function",
"function": "function(){\ncore.visitFloor(\"MT164\")\n}"
}
],
"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": "MT165",
"loc": [
6,
12
]
}
},
"beforeBattle": {},
"afterBattle": {
"7,9": [
{
"type": "setValue",
"name": "item:I963",
"operator": "+=",
"value": "6"
},
{
"type": "setValue",
"name": "flag:dasishenghuo",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:dasishenghuo==165)",
"true": [
{
"type": "openDoor",
"loc": [
6,
1
],
"floorId": "MT178"
}
]
}
],
"8,10": [
{
"type": "setValue",
"name": "item:I963",
"operator": "+=",
"value": "6"
},
{
"type": "setValue",
"name": "flag:dasishenghuo",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:dasishenghuo==165)",
"true": [
{
"type": "openDoor",
"loc": [
6,
1
],
"floorId": "MT178"
}
]
}
],
"5,9": [
{
"type": "setValue",
"name": "item:I963",
"operator": "+=",
"value": "6"
},
{
"type": "setValue",
"name": "flag:dasishenghuo",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:dasishenghuo==165)",
"true": [
{
"type": "openDoor",
"loc": [
6,
1
],
"floorId": "MT178"
}
]
}
],
"6,6": [
{
"type": "setValue",
"name": "item:I963",
"operator": "+=",
"value": "6"
},
{
"type": "setValue",
"name": "flag:dasishenghuo",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:dasishenghuo==165)",
"true": [
{
"type": "openDoor",
"loc": [
6,
1
],
"floorId": "MT178"
}
]
}
],
"6,2": [
{
"type": "setValue",
"name": "item:I963",
"operator": "+=",
"value": "6"
},
{
"type": "setValue",
"name": "flag:dasishenghuo",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:dasishenghuo==165)",
"true": [
{
"type": "openDoor",
"loc": [
6,
1
],
"floorId": "MT178"
}
]
}
],
"8,7": [
{
"type": "setValue",
"name": "item:I963",
"operator": "+=",
"value": "6"
},
{
"type": "setValue",
"name": "flag:dasishenghuo",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:dasishenghuo==165)",
"true": [
{
"type": "openDoor",
"loc": [
6,
1
],
"floorId": "MT178"
}
]
}
],
"4,7": [
{
"type": "setValue",
"name": "item:I963",
"operator": "+=",
"value": "6"
},
{
"type": "setValue",
"name": "flag:dasishenghuo",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:dasishenghuo==165)",
"true": [
{
"type": "openDoor",
"loc": [
6,
1
],
"floorId": "MT178"
}
]
}
],
"4,10": [
{
"type": "setValue",
"name": "item:I963",
"operator": "+=",
"value": "6"
},
{
"type": "setValue",
"name": "flag:dasishenghuo",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:dasishenghuo==165)",
"true": [
{
"type": "openDoor",
"loc": [
6,
1
],
"floorId": "MT178"
}
]
}
],
"1,9": [
{
"type": "setValue",
"name": "item:I963",
"operator": "+=",
"value": "6"
},
{
"type": "setValue",
"name": "flag:dasishenghuo",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:dasishenghuo==165)",
"true": [
{
"type": "openDoor",
"loc": [
6,
1
],
"floorId": "MT178"
}
]
}
],
"2,12": [
{
"type": "setValue",
"name": "item:I963",
"operator": "+=",
"value": "6"
},
{
"type": "setValue",
"name": "flag:dasishenghuo",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:dasishenghuo==165)",
"true": [
{
"type": "openDoor",
"loc": [
6,
1
],
"floorId": "MT178"
}
]
}
],
"0,5": [
{
"type": "setValue",
"name": "item:I963",
"operator": "+=",
"value": "6"
},
{
"type": "setValue",
"name": "flag:dasishenghuo",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:dasishenghuo==165)",
"true": [
{
"type": "openDoor",
"loc": [
6,
1
],
"floorId": "MT178"
}
]
}
],
"12,5": [
{
"type": "setValue",
"name": "item:I963",
"operator": "+=",
"value": "6"
},
{
"type": "setValue",
"name": "flag:dasishenghuo",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:dasishenghuo==165)",
"true": [
{
"type": "openDoor",
"loc": [
6,
1
],
"floorId": "MT178"
}
]
}
],
"3,6": [
{
"type": "setValue",
"name": "item:I963",
"operator": "+=",
"value": "6"
},
{
"type": "setValue",
"name": "flag:dasishenghuo",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:dasishenghuo==165)",
"true": [
{
"type": "openDoor",
"loc": [
6,
1
],
"floorId": "MT178"
}
]
}
],
"9,6": [
{
"type": "setValue",
"name": "item:I963",
"operator": "+=",
"value": "6"
},
{
"type": "setValue",
"name": "flag:dasishenghuo",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:dasishenghuo==165)",
"true": [
{
"type": "openDoor",
"loc": [
6,
1
],
"floorId": "MT178"
}
]
}
],
"11,10": [
{
"type": "setValue",
"name": "item:I963",
"operator": "+=",
"value": "6"
},
{
"type": "setValue",
"name": "flag:dasishenghuo",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:dasishenghuo==165)",
"true": [
{
"type": "openDoor",
"loc": [
6,
1
],
"floorId": "MT178"
}
]
}
],
"4,1": [
{
"type": "setValue",
"name": "item:I963",
"operator": "+=",
"value": "6"
},
{
"type": "setValue",
"name": "flag:dasishenghuo",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:dasishenghuo==165)",
"true": [
{
"type": "openDoor",
"loc": [
6,
1
],
"floorId": "MT178"
}
]
}
],
"8,1": [
{
"type": "setValue",
"name": "item:I963",
"operator": "+=",
"value": "6"
},
{
"type": "setValue",
"name": "flag:dasishenghuo",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:dasishenghuo==165)",
"true": [
{
"type": "openDoor",
"loc": [
6,
1
],
"floorId": "MT178"
}
]
}
]
},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 4, 4, 4, 4, 4, 4, 91, 4, 4, 4, 4, 4, 4],
[891,892,913,913,950, 81, 0, 81,950,913,913,892,890],
[ 4, 4, 4, 4, 4, 4,633, 4, 4, 4, 4, 4, 4],
[891, 4,911, 0,883, 4, 0, 4,882, 0,911, 4,890],
[887, 4, 0, 22, 0, 4,885, 4, 0, 22, 0, 4,886],
[528, 4,887, 0,913, 4, 0, 4,913, 0,886, 4,528],
[ 82, 4, 4,949, 4, 4,633, 4, 4,949, 4, 4, 82],
[ 21, 0,882, 0,529, 0, 0, 0,529, 0,883, 0, 21],
[ 4, 81, 4, 4, 4, 4, 83, 4, 4, 4, 4, 82, 4],
[ 0,528, 0,882, 0,633, 0,633, 0,883,884, 0, 21],
[ 4, 4, 4, 4,529, 4,915, 4,633, 4, 4,546, 4],
[912,888, 4,883, 0, 4, 0, 4,882, 4,886, 0,887],
[886, 0,528, 0,884, 4, 0, 4, 21, 4, 0, 23, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
],
"flyPoint": [
6,
12
]
}