main.floors.box=
{
    "floorId": "box",
    "title": "惊吓盒子",
    "name": "惊吓盒子",
    "width": 13,
    "height": 13,
    "canFlyTo": true,
    "canUseQuickShop": true,
    "cannotViewMap": true,
    "images": [],
    "item_ratio": 1,
    "defaultGround": "ground",
    "firstArrive": [],
    "eachArrive": [],
    "parallelDo": "",
    "events": {
        "12,12": [
            {
                "type": "showImage",
                "code": 1,
                "image": "bg.jpg",
                "loc": [
                    0,
                    0
                ],
                "opacity": 1,
                "time": 1000
            },
            {
                "type": "showImage",
                "code": 2,
                "image": "01.png",
                "loc": [
                    0,
                    0
                ],
                "opacity": 1,
                "time": 1000,
                "async": true
            },
            {
                "type": "showImage",
                "code": 3,
                "image": "011.png",
                "sloc": [
                    0,
                    0,
                    null
                ],
                "loc": [
                    50,
                    150,
                    120,
                    120
                ],
                "opacity": 0,
                "time": 0,
                "async": true
            },
            {
                "type": "moveImage",
                "code": 3,
                "to": [
                    120,
                    150
                ],
                "opacity": 1,
                "time": 1000,
                "async": true
            },
            {
                "type": "showImage",
                "code": 4,
                "image": "012.png",
                "sloc": [
                    0,
                    0,
                    null
                ],
                "loc": [
                    260,
                    230,
                    120,
                    120
                ],
                "opacity": 0,
                "time": 0,
                "async": true
            },
            {
                "type": "moveImage",
                "code": 4,
                "to": [
                    190,
                    230
                ],
                "opacity": 1,
                "time": 1000,
                "async": true
            },
            {
                "type": "showImage",
                "code": 5,
                "image": "013.png",
                "sloc": [
                    0,
                    0,
                    null
                ],
                "loc": [
                    60,
                    315,
                    120,
                    120
                ],
                "opacity": 0,
                "time": 0,
                "async": true
            },
            {
                "type": "moveImage",
                "code": 5,
                "to": [
                    130,
                    315
                ],
                "opacity": 1,
                "time": 1000,
                "async": true
            },
            {
                "type": "waitAsync"
            }
        ],
        "11,12": [
            {
                "type": "insert",
                "loc": [
                    12,
                    12
                ],
                "floorId": "box"
            },
            {
                "type": "wait"
            },
            {
                "type": "playBgm",
                "name": "bgm.mp3"
            },
            {
                "type": "while",
                "condition": "1",
                "data": [
                    {
                        "type": "if",
                        "condition": "flag:type==1&&flag:x>3&&flag:x<8&&flag:y>5&&flag:y<8",
                        "true": [
                            {
                                "type": "comment",
                                "text": "点击开始游戏"
                            },
                            {
                                "type": "playSound",
                                "name": "right.wav"
                            },
                            {
                                "type": "insert",
                                "loc": [
                                    10,
                                    11
                                ],
                                "floorId": "box"
                            },
                            {
                                "type": "break"
                            }
                        ],
                        "false": []
                    },
                    {
                        "type": "if",
                        "condition": "flag:type==1&&flag:x>4&&flag:x<9&&flag:y>7&&flag:y<10",
                        "true": [
                            {
                                "type": "comment",
                                "text": "点击读取存档"
                            },
                            {
                                "type": "playSound",
                                "name": "right.wav"
                            },
                            {
                                "type": "insert",
                                "loc": [
                                    11,
                                    11
                                ],
                                "floorId": "box"
                            },
                            {
                                "type": "break"
                            }
                        ],
                        "false": []
                    },
                    {
                        "type": "if",
                        "condition": "flag:type==1&&flag:x>3&&flag:x<8&&flag:y>10&&flag:y<13",
                        "true": [
                            {
                                "type": "comment",
                                "text": "点击回放录像"
                            },
                            {
                                "type": "playSound",
                                "name": "right.wav"
                            },
                            {
                                "type": "insert",
                                "loc": [
                                    12,
                                    11
                                ],
                                "floorId": "box"
                            },
                            {
                                "type": "break"
                            }
                        ],
                        "false": []
                    },
                    {
                        "type": "wait"
                    }
                ]
            },
            {
                "type": "comment",
                "text": "在这里可以用事件来自定义绘制标题界面的背景图等"
            },
            {
                "type": "comment",
                "text": "给用户提供选择项，这里简单的使用了choices事件"
            },
            {
                "type": "comment",
                "text": "也可以贴按钮图然后使用循环处理+等待操作来完成"
            },
            {
                "type": "comment",
                "text": "接下来会执行startText中的事件"
            }
        ],
        "10,11": [
            {
                "type": "comment",
                "text": "开始游戏"
            },
            {
                "type": "comment",
                "text": "检查bgm状态，下同"
            },
            {
                "type": "insert",
                "loc": [
                    10,
                    12
                ],
                "floorId": "box"
            },
            {
                "type": "wait"
            },
            {
                "type": "while",
                "condition": "1",
                "data": [
                    {
                        "type": "if",
                        "condition": "flag:type==1&&flag:x>2&&flag:x<8&&flag:y>5&&flag:y<8",
                        "true": [
                            {
                                "type": "comment",
                                "text": "点击松虫草"
                            },
                            {
                                "type": "playSound",
                                "name": "right.wav"
                            },
                            {
                                "type": "function",
                                "function": "function(){\ncore.status.hard = '松虫草'; \ncore.events.setInitData('Easy');\n}"
                            },
                            {
                                "type": "break"
                            }
                        ],
                        "false": []
                    },
                    {
                        "type": "if",
                        "condition": "flag:type==1&&flag:x>4&&flag:x<10&&flag:y>7&&flag:y<10",
                        "true": [
                            {
                                "type": "comment",
                                "text": "点击三色堇"
                            },
                            {
                                "type": "playSound",
                                "name": "right.wav"
                            },
                            {
                                "type": "function",
                                "function": "function(){\ncore.status.hard = '三色堇'; \ncore.events.setInitData('Normal');\n}"
                            },
                            {
                                "type": "break"
                            }
                        ],
                        "false": []
                    },
                    {
                        "type": "if",
                        "condition": "flag:type==1&&flag:x>2&&flag:x<8&&flag:y>10&&flag:y<13",
                        "true": [
                            {
                                "type": "comment",
                                "text": "点击常夜樱"
                            },
                            {
                                "type": "playSound",
                                "name": "right.wav"
                            },
                            {
                                "type": "function",
                                "function": "function(){\ncore.status.hard = '常夜樱'; \ncore.events.setInitData('Hard');\n}"
                            },
                            {
                                "type": "break"
                            }
                        ],
                        "false": []
                    },
                    {
                        "type": "wait"
                    }
                ]
            },
            {
                "type": "hideImage",
                "code": 1,
                "time": 0,
                "async": true
            },
            {
                "type": "hideImage",
                "code": 2,
                "time": 0,
                "async": true
            },
            {
                "type": "hideImage",
                "code": 3,
                "time": 0,
                "async": true
            },
            {
                "type": "hideImage",
                "code": 4,
                "time": 0,
                "async": true
            },
            {
                "type": "hideImage",
                "code": 5,
                "time": 0,
                "async": true
            },
            {
                "type": "comment",
                "text": "成功选择难度"
            }
        ],
        "11,11": [
            {
                "type": "comment",
                "text": "读档"
            },
            {
                "type": "function",
                "function": "function(){\ncore.control.checkBgm()\n}"
            },
            {
                "type": "hideImage",
                "code": 1,
                "time": 0
            },
            {
                "type": "comment",
                "text": "这段代码会结束事件，打开读档页面，读取存档或重新开始"
            },
            {
                "type": "function",
                "function": "function(){\ncore.insertAction([{\"type\": \"exit\"}], null, null, function() {\n\tcore.status.played = false;\n\tcore.load();\n})\n}"
            },
            {
                "type": "comment",
                "text": "不管读档有没有成功，都会重新开始，这个地方不会被执行到"
            }
        ],
        "12,11": [
            {
                "type": "comment",
                "text": "录像"
            },
            {
                "type": "function",
                "function": "function(){\ncore.control.checkBgm()\n}"
            },
            {
                "type": "hideImage",
                "code": 1,
                "time": 0
            },
            {
                "type": "comment",
                "text": "这段代码会结束事件，选择录像文件，播放录像或重新开始"
            },
            {
                "type": "function",
                "function": "function(){\ncore.insertAction([{\"type\": \"exit\"}], null, null, function() {\n\tcore.restart();\n\tcore.chooseReplayFile();\n})\n}"
            },
            {
                "type": "comment",
                "text": "不管录像有没有成功，都会重新开始，这个地方不会被执行到"
            }
        ],
        "10,12": [
            {
                "type": "moveImage",
                "code": 3,
                "to": [
                    50,
                    150
                ],
                "opacity": 0,
                "time": 1000,
                "async": true
            },
            {
                "type": "moveImage",
                "code": 4,
                "to": [
                    260,
                    230
                ],
                "opacity": 0,
                "time": 1000,
                "async": true
            },
            {
                "type": "moveImage",
                "code": 5,
                "to": [
                    60,
                    310
                ],
                "opacity": 0,
                "time": 1000
            },
            {
                "type": "showImage",
                "code": 3,
                "image": "014.png",
                "sloc": [
                    0,
                    0,
                    null
                ],
                "loc": [
                    30,
                    150,
                    200,
                    120
                ],
                "opacity": 0,
                "time": 0
            },
            {
                "type": "moveImage",
                "code": 3,
                "to": [
                    100,
                    150
                ],
                "opacity": 1,
                "time": 1000,
                "async": true
            },
            {
                "type": "showImage",
                "code": 4,
                "image": "015.png",
                "sloc": [
                    0,
                    0,
                    null
                ],
                "loc": [
                    240,
                    230,
                    200,
                    120
                ],
                "opacity": 0,
                "time": 0
            },
            {
                "type": "moveImage",
                "code": 4,
                "to": [
                    170,
                    230
                ],
                "opacity": 1,
                "time": 1000,
                "async": true
            },
            {
                "type": "showImage",
                "code": 5,
                "image": "016.png",
                "sloc": [
                    0,
                    0,
                    null
                ],
                "loc": [
                    50,
                    315,
                    200,
                    120
                ],
                "opacity": 0,
                "time": 0
            },
            {
                "type": "moveImage",
                "code": 5,
                "to": [
                    120,
                    315
                ],
                "opacity": 1,
                "time": 1000,
                "async": true
            },
            {
                "type": "waitAsync"
            }
        ],
        "0,12": [
            {
                "type": "if",
                "condition": "flag:qingyuetan==1",
                "true": [
                    {
                        "type": "setCurtain",
                        "color": [
                            255,
                            255,
                            255,
                            1
                        ],
                        "time": 2000
                    },
                    {
                        "type": "pauseBgm"
                    },
                    {
                        "type": "changeFloor",
                        "floorId": "black",
                        "loc": [
                            -1,
                            0
                        ],
                        "direction": "down",
                        "time": 0
                    },
                    {
                        "type": "setCurtain",
                        "time": 1000,
                        "async": true
                    },
                    {
                        "type": "showImage",
                        "code": 1,
                        "image": "qing.jpg",
                        "loc": [
                            -35,
                            -40
                        ],
                        "opacity": 1,
                        "time": 0,
                        "async": true
                    },
                    {
                        "type": "moveImage",
                        "code": 1,
                        "to": [
                            -35,
                            10
                        ],
                        "time": 1500,
                        "async": true
                    },
                    {
                        "type": "waitAsync"
                    },
                    {
                        "type": "setText",
                        "bold": true
                    },
                    "静谧的清潭。\n在阳光的照射下，水雾映出薄薄的一层纱。\n隐约能够听到流水的叮咚声。",
                    "它原本只是一片小小池塘。\n最初她默默地偏居一隅，\n直到后来，“梦境之源”被安置在了这里。",
                    "清月潭是幸运儿，得到了“梦境之源”最多的护佑。\n梦境之园在不断发展，而她也随之不可思议地开始扩大。\n任何一位到访者，都会驻足而叹，无比虔诚。",
                    "\r[blue]清月潭\r的水十分清澈，能够见到潭底。\n但进入潭中一定要小心谨慎，\n因为潭里的水实际上是很深的。",
                    {
                        "type": "setCurtain",
                        "color": [
                            0,
                            0,
                            0,
                            1
                        ],
                        "time": 1000
                    },
                    {
                        "type": "setText",
                        "bold": false
                    },
                    {
                        "type": "changeFloor",
                        "floorId": "QY1",
                        "loc": [
                            6,
                            0
                        ],
                        "direction": "down",
                        "time": 0
                    },
                    {
                        "type": "hideImage",
                        "code": 1,
                        "time": 0
                    },
                    {
                        "type": "setCurtain",
                        "time": 1000,
                        "async": true
                    },
                    {
                        "type": "sleep",
                        "time": 500
                    },
                    {
                        "type": "setValue",
                        "name": "flag:qingyuetan",
                        "value": "2"
                    },
                    "\t[星丽塔]\f[x1.png,-280,-70]好舒服呀……\n好纯粹的元素波动。",
                    "\t[星丽塔]\f[x1.png,-280,-70]前面似乎有一些能量体，\n在这里它们能够发挥出远超同级别的力量，\n不过如果找准它们的弱点，应该不难应付。",
                    "\t[星丽塔]\f[x1.png,-280,-70]还有能量凝聚而生的“凝华”……\n只要能够抵挡它的力量，就可以收服它，\n并吸收它蕴含的能量。",
                    {
                        "type": "sleep",
                        "time": 1000
                    },
                    "\t[星丽塔]\f[x2.png,-280,-70]看起来附近就有一个目标呢。\n左下角有一块蕴含火元素的\r[red]熔岩石\r……\n应该是标志石了。",
                    "\t[星丽塔]\f[x1.png,-280,-70]……取得它吧！"
                ],
                "false": [
                    {
                        "type": "if",
                        "condition": "flag:qingyuetan==2",
                        "true": [
                            {
                                "type": "changeFloor",
                                "floorId": "QY1",
                                "loc": [
                                    6,
                                    0
                                ],
                                "direction": "down",
                                "time": 500
                            }
                        ],
                        "false": [
                            "\t[星丽塔]\f[x1.png,-280,-70]似乎有灵力波动从这条路的方向传递过来。",
                            "\t[星丽塔]\f[x1.png,-280,-70]在没有了解清楚之前不能贸然前进……\n先去问问丽缇姐姐比较好。",
                            {
                                "type": "setValue",
                                "name": "flag:qingyueask",
                                "value": "1"
                            },
                            {
                                "type": "moveHero",
                                "time": 300,
                                "steps": [
                                    "right"
                                ]
                            }
                        ]
                    }
                ]
            }
        ],
        "1,12": [
            {
                "type": "changeFloor",
                "floorId": "Map",
                "loc": [
                    24,
                    27
                ],
                "direction": "up",
                "time": 500
            }
        ]
    },
    "changeFloor": {},
    "afterBattle": {},
    "afterGetItem": {},
    "afterOpenDoor": {},
    "cannotMove": {},
    "map": [
    [  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,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
    [  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  1,  1],
    [554,110075,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  4]
],
    "bgmap": [

],
    "fgmap": [

]
}