mota-js/libs/floors/sample1.js
2017-12-05 01:10:20 +08:00

31 lines
909 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function sample1() {}
sample1.prototype.init = function() {
this.data = {
'floorId': 'template', // 楼层唯一标识符,需要和名字完全一致
'title': "样板层", // 楼层中文名
'name': 0, // 显示在status bar中的名称
"canFlyTo": true, // 该楼能否被飞行器飞到(不能的话在该楼也不允许使用)
"map": [ // 地图数据需要是13x13建议使用地图生成器来生成
],
"firstArrive": [ // 第一次到该楼层触发的事件
],
"events": [ // 该楼的所有可能事件列表
],
"afterOpenDoor": [ // 开完门后可能触发的事件列表
],
"afterBattle": [ // 战斗后可能触发的事件列表
],
"afterGetItem": [ // 获得道具后可能触发的事件列表
]
};
}
main.floors.sample1 = new sample1();