371 lines
11 KiB
JavaScript
371 lines
11 KiB
JavaScript
main.floors.MT2=
|
||
{
|
||
"floorId": "MT2",
|
||
"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",
|
||
"firstArrive": [
|
||
{
|
||
"type": "if",
|
||
"condition": "(flag:hard<3)",
|
||
"true": [
|
||
{
|
||
"type": "setCurtain",
|
||
"time": 1000
|
||
}
|
||
],
|
||
"false": []
|
||
}
|
||
],
|
||
"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,6": [
|
||
{
|
||
"type": "if",
|
||
"condition": "(flag:hard===3)",
|
||
"true": [
|
||
{
|
||
"type": "changeFloor",
|
||
"floorId": "MT3",
|
||
"loc": [
|
||
6,
|
||
6
|
||
]
|
||
}
|
||
],
|
||
"false": [
|
||
{
|
||
"type": "setCurtain",
|
||
"color": [
|
||
0,
|
||
0,
|
||
0,
|
||
1
|
||
],
|
||
"time": 1000,
|
||
"keep": true
|
||
},
|
||
"\t[母亲,N385]孩子他爸,明天咱儿子就要过百日了,宴席准备的咋样了?",
|
||
"\t[父亲,N389]放心吧,一切准备就绪,明天就让大家看一看这孩子。\n来,让爸爸抱抱..",
|
||
{
|
||
"type": "changeFloor",
|
||
"floorId": "MT3",
|
||
"loc": [
|
||
6,
|
||
6
|
||
]
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
"changeFloor": {},
|
||
"beforeBattle": {},
|
||
"afterBattle": {
|
||
"9,2": [
|
||
{
|
||
"type": "setValue",
|
||
"name": "flag:tm",
|
||
"operator": "+=",
|
||
"value": "1"
|
||
},
|
||
{
|
||
"type": "if",
|
||
"condition": "(flag:tm==11)",
|
||
"true": [
|
||
{
|
||
"type": "openDoor",
|
||
"loc": [
|
||
6,
|
||
5
|
||
]
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"3,2": [
|
||
{
|
||
"type": "setValue",
|
||
"name": "flag:tm",
|
||
"operator": "+=",
|
||
"value": "1"
|
||
},
|
||
{
|
||
"type": "if",
|
||
"condition": "(flag:tm==11)",
|
||
"true": [
|
||
{
|
||
"type": "openDoor",
|
||
"loc": [
|
||
6,
|
||
5
|
||
]
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"3,4": [
|
||
{
|
||
"type": "setValue",
|
||
"name": "flag:tm",
|
||
"operator": "+=",
|
||
"value": "1"
|
||
},
|
||
{
|
||
"type": "if",
|
||
"condition": "(flag:tm==11)",
|
||
"true": [
|
||
{
|
||
"type": "openDoor",
|
||
"loc": [
|
||
6,
|
||
5
|
||
]
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"2,7": [
|
||
{
|
||
"type": "setValue",
|
||
"name": "flag:tm",
|
||
"operator": "+=",
|
||
"value": "1"
|
||
},
|
||
{
|
||
"type": "if",
|
||
"condition": "(flag:tm==11)",
|
||
"true": [
|
||
{
|
||
"type": "openDoor",
|
||
"loc": [
|
||
6,
|
||
5
|
||
]
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"5,8": [
|
||
{
|
||
"type": "setValue",
|
||
"name": "flag:tm",
|
||
"operator": "+=",
|
||
"value": "1"
|
||
},
|
||
{
|
||
"type": "if",
|
||
"condition": "(flag:tm==11)",
|
||
"true": [
|
||
{
|
||
"type": "openDoor",
|
||
"loc": [
|
||
6,
|
||
5
|
||
]
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"7,8": [
|
||
{
|
||
"type": "setValue",
|
||
"name": "flag:tm",
|
||
"operator": "+=",
|
||
"value": "1"
|
||
},
|
||
{
|
||
"type": "if",
|
||
"condition": "(flag:tm==11)",
|
||
"true": [
|
||
{
|
||
"type": "openDoor",
|
||
"loc": [
|
||
6,
|
||
5
|
||
]
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"10,7": [
|
||
{
|
||
"type": "setValue",
|
||
"name": "flag:tm",
|
||
"operator": "+=",
|
||
"value": "1"
|
||
},
|
||
{
|
||
"type": "if",
|
||
"condition": "(flag:tm==11)",
|
||
"true": [
|
||
{
|
||
"type": "openDoor",
|
||
"loc": [
|
||
6,
|
||
5
|
||
]
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"7,4": [
|
||
{
|
||
"type": "setValue",
|
||
"name": "flag:tm",
|
||
"operator": "+=",
|
||
"value": "1"
|
||
},
|
||
{
|
||
"type": "if",
|
||
"condition": "(flag:tm==11)",
|
||
"true": [
|
||
{
|
||
"type": "openDoor",
|
||
"loc": [
|
||
6,
|
||
5
|
||
]
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"5,4": [
|
||
{
|
||
"type": "setValue",
|
||
"name": "flag:tm",
|
||
"operator": "+=",
|
||
"value": "1"
|
||
},
|
||
{
|
||
"type": "if",
|
||
"condition": "(flag:tm==11)",
|
||
"true": [
|
||
{
|
||
"type": "openDoor",
|
||
"loc": [
|
||
6,
|
||
5
|
||
]
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"9,9": [
|
||
{
|
||
"type": "setValue",
|
||
"name": "flag:tm",
|
||
"operator": "+=",
|
||
"value": "1"
|
||
},
|
||
{
|
||
"type": "if",
|
||
"condition": "(flag:tm==11)",
|
||
"true": [
|
||
{
|
||
"type": "openDoor",
|
||
"loc": [
|
||
6,
|
||
5
|
||
]
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"3,9": [
|
||
{
|
||
"type": "setValue",
|
||
"name": "flag:tm",
|
||
"operator": "+=",
|
||
"value": "1"
|
||
},
|
||
{
|
||
"type": "if",
|
||
"condition": "(flag:tm==11)",
|
||
"true": [
|
||
{
|
||
"type": "openDoor",
|
||
"loc": [
|
||
6,
|
||
5
|
||
]
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
"afterGetItem": {},
|
||
"afterOpenDoor": {},
|
||
"autoEvent": {},
|
||
"cannotMove": {},
|
||
"cannotMoveIn": {},
|
||
"map": [
|
||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||
[ 0,40226,40204,40204,40204,40204,40204,40204,40204,40204,40204,40206, 0],
|
||
[ 0,40225, 0,201, 0, 27, 0, 28, 0,201, 0,40186, 0],
|
||
[ 0,40225, 27,40044,40044,40044, 29,40044,40044,40044, 28,40186, 0],
|
||
[ 0,40225, 0,201, 0,202, 0,202, 0,40044, 0,40186, 0],
|
||
[ 0,40225, 31,40044, 29,40044, 86,40044, 29,40044, 31,40186, 0],
|
||
[ 0,40225, 0,40044, 0,40044, 89,40044, 0,40044, 0,40186, 0],
|
||
[ 0,40225,201,40044, 31,40044,40044,40044, 31,40044,201,40186, 0],
|
||
[ 0,40225, 0, 0, 0,201, 0,201, 0, 0, 0,40186, 0],
|
||
[ 0,40225,40044,202,40044,40044, 0,40044,40044,202,40044,40186, 0],
|
||
[ 0,40225, 27, 0, 32,40044, 0,40044, 32, 0, 28,40186, 0],
|
||
[ 0,40224,40180,40180,40180,40180,40180,40180,40180,40180,40180,40182, 0],
|
||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
||
],
|
||
"bgmap": [
|
||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||
[ 0, 0,80002,80002,80002,80002, 0, 0, 0, 0, 0, 0, 0],
|
||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
||
],
|
||
"fgmap": [
|
||
|
||
],
|
||
"bg2map": [
|
||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
|
||
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
|
||
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
|
||
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
|
||
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
|
||
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
|
||
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
|
||
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
|
||
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
|
||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
||
],
|
||
"fg2map": [
|
||
|
||
],
|
||
"bgm": "congtianerjiang.mp3"
|
||
} |