main.floors.B4=
{
    "floorId": "B4",
    "title": "引力球",
    "name": "引力球",
    "width": 15,
    "height": 15,
    "canFlyTo": true,
    "canUseQuickShop": true,
    "cannotViewMap": false,
    "images": [
        [
            0,
            0,
            "2.jpg",
            0
        ],
        [
            0,
            0,
            "3.png",
            1
        ]
    ],
    "item_ratio": 1,
    "defaultGround": "ground",
    "firstArrive": [
        {
            "type": "setHeroIcon",
            "name": "hero2.png"
        },
        {
            "type": "function",
            "function": "function(){\ncore.status.shops[\"shop\"].visited = 1;\ncore.setFlag('map', new Array(8));\nfor (var i = 0; i < 8; i++) {\n\tcore.getFlag('map')[i] = new Array(55);\n\tfor (var j = 0; j < 55; j++) {\n\t\tcore.getFlag('map')[i][j] = core.getBlockId(10 - i, j, \"B3\");\n\t}\n}\ncore.setFlag('x', 4);\ncore.setFlag('y', 11);\ncore.values.moveSpeed = 10;\ncore.status.hero.lv = 0;\n}"
        },
        {
            "type": "setValue",
            "name": "status:hp",
            "value": "300"
        },
        {
            "type": "setValue",
            "name": "status:atk",
            "value": "1"
        },
        {
            "type": "setValue",
            "name": "status:def",
            "value": "0"
        },
        {
            "type": "insert",
            "name": "刷新"
        },
        {
            "type": "showStatusBar"
        },
        {
            "type": "setVolume",
            "value": 100,
            "time": 2000,
            "async": true
        },
        {
            "type": "setCurtain",
            "color": [
                0,
                0,
                0,
                0
            ],
            "time": 2000,
            "async": true
        },
        {
            "type": "waitAsync"
        },
        {
            "type": "sleep",
            "time": 1000
        },
        "操作说明：\n下方的0,1,2三个按钮，控制引力球的旋转速度，旋转过程中碰到道具会自动拾取，碰到怪物会自动战斗。",
        "快捷商店是默认开启的，按K键或点击下方工具栏的图标即可使用。",
        "使用浏览地图功能，可以看到接下来会刷新出什么。",
        "本塔以钥匙计分，黄蓝红钥匙分别计1,10,100分。在能打到最后的情况下，试着获得更多的钥匙吧！"
    ],
    "eachArrive": [],
    "parallelDo": "if (core.getFlag('f', 0) == 0) {\n\tvar lastTime = core.getFlag('lastWeatherTime', 0);\n\t// 每多少毫秒重绘一次；天气效果默认都是30\n\tif (timestamp - lastTime < 60) {\n\t\tcore.removeFlag('lastWeatherTime');\n\t}\n\tif (timestamp - lastTime > 60) {\n\t\tcore.clearMap('bg'); // 清空背景层\n\t\tvar lastOffsetY = core.getFlag('lastOffsetY', 0); // 上次的offset\n\t\tvar image = core.material.images.images['2.jpg']; // 获得图片，这里写图片名\n\t\tvar width = image.width,\n\t\t\theight = image.height; // 获得宽高\n\t\t// 绘制下一次，参见drawImage的API：http://www.w3school.com.cn/tags/canvas_drawimage.asp\n\t\tif (lastOffsetY + 480 > height) { // 需要首位相接\n\t\t\t// 尾部\n\t\t\tcore.ui.drawImage('bg', image, 0, lastOffsetY, width, height - lastOffsetY, 0, 0, width, height - lastOffsetY);\n\t\t\t// 首部\n\t\t\tcore.ui.drawImage('bg', image, 0, 0, width, lastOffsetY + 480 - height, 0, height - lastOffsetY, width, lastOffsetY + 480 - height);\n\t\t} else { // 不需要，直接绘制\n\t\t\tcore.ui.drawImage('bg', image, 0, lastOffsetY, width, 480, 0, 0, width, 480);\n\t\t}\n\t\t// 移动图片\n\t\tlastOffsetY -= 1; // 这里是每次移动的像素\n\t\tif (lastOffsetY < 0) lastOffsetY += height;\n\t\tcore.setFlag('lastOffsetY', lastOffsetY);\n\t\tcore.setFlag('lastWeatherTime', timestamp); // 记录时间\n\t}\n}",
    "events": {
        "1,13": [
            {
                "type": "insert",
                "name": "引力球",
                "args": [
                    0
                ]
            }
        ],
        "7,14": [
            {
                "type": "insert",
                "name": "引力球",
                "args": [
                    -1
                ]
            }
        ],
        "13,13": [
            {
                "type": "insert",
                "name": "引力球",
                "args": [
                    -2
                ]
            }
        ]
    },
    "changeFloor": {},
    "afterBattle": {
        "3,10": [
            {
                "type": "insert",
                "name": "引力球2"
            }
        ],
        "4,10": [
            {
                "type": "insert",
                "name": "引力球2"
            }
        ],
        "5,10": [
            {
                "type": "insert",
                "name": "引力球2"
            }
        ],
        "6,10": [
            {
                "type": "insert",
                "name": "引力球2"
            }
        ],
        "8,10": [
            {
                "type": "insert",
                "name": "引力球2"
            }
        ],
        "9,10": [
            {
                "type": "insert",
                "name": "引力球2"
            }
        ],
        "10,10": [
            {
                "type": "insert",
                "name": "引力球2"
            }
        ],
        "11,10": [
            {
                "type": "insert",
                "name": "引力球2"
            }
        ]
    },
    "afterGetItem": {
        "3,10": [
            {
                "type": "insert",
                "name": "引力球2"
            }
        ],
        "4,10": [
            {
                "type": "insert",
                "name": "引力球2"
            }
        ],
        "5,10": [
            {
                "type": "insert",
                "name": "引力球2"
            }
        ],
        "6,10": [
            {
                "type": "insert",
                "name": "引力球2"
            }
        ],
        "8,10": [
            {
                "type": "insert",
                "name": "引力球2"
            }
        ],
        "9,10": [
            {
                "type": "insert",
                "name": "引力球2"
            }
        ],
        "10,10": [
            {
                "type": "insert",
                "name": "引力球2"
            }
        ],
        "11,10": [
            {
                "type": "insert",
                "name": "引力球2"
            }
        ]
    },
    "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,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
    [  0,  0,  0,  0,121,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
    [ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17],
    [ 17,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 17],
    [ 17, 17, 17, 17, 17, 17, 17,  0, 17, 17, 17, 17, 17, 17, 17]
],
    "bgmap": [

],
    "fgmap": [

]
}