221 lines
6.9 KiB
JavaScript
221 lines
6.9 KiB
JavaScript
main.floors.MT179=
|
|
{
|
|
"floorId": "MT179",
|
|
"title": "人生宇宙",
|
|
"name": "人生宇宙",
|
|
"width": 13,
|
|
"height": 13,
|
|
"canFlyTo": false,
|
|
"canFlyFrom": false,
|
|
"canUseQuickShop": false,
|
|
"cannotViewMap": false,
|
|
"images": [
|
|
{
|
|
"name": "8.jpg",
|
|
"reverse": ":o",
|
|
"canvas": "bg",
|
|
"x": 0,
|
|
"y": 0
|
|
}
|
|
],
|
|
"ratio": 1,
|
|
"defaultGround": "ground",
|
|
"bgm": "jimeiren.mp3",
|
|
"firstArrive": [
|
|
{
|
|
"type": "setCurtain",
|
|
"time": 1000
|
|
},
|
|
{
|
|
"type": "showStatusBar"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:score",
|
|
"value": "item:yellowKey*2+item:blueKey*5+item:redKey*15+item:pickaxe*30"
|
|
}
|
|
],
|
|
"eachArrive": [],
|
|
"parallelDo": "var lastTime = core.getFlag('lastTime', 0);\n\nif (timestamp - lastTime > 60) {\n\tvar image = core.material.images.images[\"8.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, -296, -88);\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": {
|
|
"6,0": [
|
|
{
|
|
"type": "if",
|
|
"condition": "switch:A",
|
|
"true": [
|
|
{
|
|
"type": "changeFloor",
|
|
"floorId": "MT180",
|
|
"loc": [
|
|
6,
|
|
12
|
|
]
|
|
}
|
|
],
|
|
"false": [
|
|
"我选择华为的那会,起初他们并没有理我。我一度心灰意冷,因为我害怕我的孤注一掷换来的是失败的结果。",
|
|
"生活之中,总会要面对让自己感到痛苦与无力的事情。有时候换来的失败。但成功只是一时的,失败才是主旋律,不能害怕失败,在失败中跌倒那么就想尽办法爬起来!",
|
|
{
|
|
"type": "setValue",
|
|
"name": "switch:A",
|
|
"value": "true"
|
|
},
|
|
{
|
|
"type": "changeFloor",
|
|
"floorId": "MT180",
|
|
"loc": [
|
|
6,
|
|
12
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"changeFloor": {},
|
|
"beforeBattle": {},
|
|
"afterBattle": {
|
|
"6,10": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:wotainanle",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:wotainanle==28)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT183"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"6,8": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:wotainanle",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:wotainanle==28)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT183"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"6,6": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:wotainanle",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:wotainanle==28)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT183"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"6,4": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:wotainanle",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:wotainanle==28)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT183"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"6,2": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:wotainanle",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:wotainanle==28)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT183"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"afterGetItem": {},
|
|
"afterOpenDoor": {},
|
|
"autoEvent": {},
|
|
"cannotMove": {},
|
|
"cannotMoveIn": {},
|
|
"map": [
|
|
[40044, 22,40044,40044,40044,40044, 89,40044,40044,40044,40044, 22,40044],
|
|
[ 22, 81, 81, 81, 81, 81, 0, 81, 81, 81, 81, 81, 22],
|
|
[40044,40044,40044,40044,40044,40044,960,40044,40044,40044,40044,40044,40044],
|
|
[916,916,915, 82,916, 81, 0, 81,916, 82,915,916,916],
|
|
[40044,40044,40044,40044,40044,40044,960,40044,40044,40044,40044,40044,40044],
|
|
[916,916,915, 82,916, 81, 0, 81,916, 82,915,916,916],
|
|
[40044,40044,40044,40044,40044,40044,960,40044,40044,40044,40044,40044,40044],
|
|
[916,916,915, 82,916, 81, 0, 81,916, 82,915,916,916],
|
|
[40044,40044,40044,40044,40044,40044,960,40044,40044,40044,40044,40044,40044],
|
|
[916,916,915, 82,916, 81, 0, 81,916, 82,915,916,916],
|
|
[40044,40044,40044,40044,40044,40044,960,40044,40044,40044,40044,40044,40044],
|
|
[40044,40044, 21, 21, 82, 82, 0, 82, 82, 21, 21,40044,40044],
|
|
[40044,40044, 21, 21, 21,40044, 0,40044, 21, 21, 21,40044,40044]
|
|
],
|
|
"bgmap": [
|
|
|
|
],
|
|
"fgmap": [
|
|
|
|
],
|
|
"bg2map": [
|
|
|
|
],
|
|
"fg2map": [
|
|
|
|
]
|
|
} |