yimengjiutian/project/floors/MT1.js

113 lines
4.1 KiB
JavaScript
Raw Normal View History

2023-04-19 14:26:21 +08:00
main.floors.MT1=
{
"floorId": "MT1",
"title": "朦胧的环境",
"name": "朦胧的环境",
"width": 13,
"height": 13,
"canFlyTo": false,
"canFlyFrom": false,
"canUseQuickShop": false,
2023-04-19 14:26:21 +08:00
"cannotViewMap": false,
"images": [
{
"name": "8.jpg",
"reverse": ":o",
"canvas": "bg",
"x": 0,
"y": 0
}
],
"ratio": 1,
"defaultGround": "ground",
"firstArrive": [
{
"type": "setCurtain",
"time": 1000
},
{
"type": "changePos",
"direction": "down"
},
"从这层开始的三层,到了下一层都不能返回,铁门需要你击败所有的怪物。",
{
"type": "function",
"function": "function(){\ncore.plugin.displayChapter(\"第一篇\", \"婴儿\")\n}"
}
2023-04-19 14:26:21 +08:00
],
"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,10": [
{
"type": "setCurtain",
"color": [
0,
0,
0,
1
],
"time": 500,
"keep": true
},
"\t[父亲,N389]孩子明天就满月了,辛苦你了。",
"\t[母亲,N385]不辛苦,只要孩子健康成长一切都是值得的。\n好了宝宝乖...咱不哭",
{
"type": "changeFloor",
"floorId": "MT2",
"loc": [
6,
10
]
}
]
},
"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,40226,40205,40206, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,40225, 0,40174, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,40225, 0,40174, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,40225, 27,40174, 0, 0, 0, 0, 0],
[ 0,40226,40205,40205,40205,40227, 0,40202,40204,40204,40204,40206, 0],
[ 0,40225, 28, 31,201, 0, 31, 0,201, 32, 29,40222, 0],
[ 0,40224,40180,40180,40180,40228, 0,40142,40180,40180,40180,40182, 0],
[ 0, 0, 0, 0, 0,40225,201,40174, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,40225, 0,40174, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,40225, 89,40174, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,40224,40179,40182, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"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, 0, 0, 0, 0,80002, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,80002, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,80002, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,80002, 0, 0, 0, 0, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0, 0, 0, 0, 0,80002, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,80002, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,80002, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,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]
],
"fg2map": [
],
"bgm": "congtianerjiang.mp3"
}