This commit is contained in:
oc 2018-03-08 23:04:13 +08:00
parent 6e1d4b61e8
commit 3c5e41842e
6 changed files with 1424 additions and 642 deletions

View File

@ -300,13 +300,10 @@ control.prototype.startGame = function (hard, callback) {
////// 重新开始游戏;此函数将回到标题页面 ////// ////// 重新开始游戏;此函数将回到标题页面 //////
control.prototype.restart = function() { control.prototype.restart = function() {
this.showStartAnimate(); this.showStartAnimate();
if (core.bgms.length>0)
core.playBgm(core.bgms[0]);
} }
/////////////////////// 寻路算法 & 人物行走控制 /////////////////////// /////////////////////// 寻路算法 & 人物行走控制 ///////////////////////
////// 清除自动寻路路线 ////// ////// 清除自动寻路路线 //////
@ -1975,7 +1972,7 @@ control.prototype.pauseBgm = function () {
core.musicStatus.isPlaying = false; core.musicStatus.isPlaying = false;
} }
catch (e) { catch (e) {
console.log("无法暂停BGM "+bgm); console.log("无法暂停BGM");
console.log(e); console.log(e);
} }
} }
@ -1994,13 +1991,18 @@ control.prototype.resumeBgm = function () {
} }
else { else {
if (core.bgms.length>0) { if (core.bgms.length>0) {
core.playBgm(core.bgms[0]); if (core.isset(core.floors[core.status.floorId].bgm)) {
core.playBgm(core.floors[core.status.floorId].bgm);
}
else {
core.playBgm(core.bgms[0]);
}
core.musicStatus.isPlaying = true; core.musicStatus.isPlaying = true;
} }
} }
} }
catch (e) { catch (e) {
console.log("无法恢复BGM "+bgm); console.log("无法恢复BGM");
console.log(e); console.log(e);
} }
} }

View File

@ -1,122 +1,213 @@
main.floors.sample0 = main.floors.sample0=
{ {
"floorId": "sample0", // 这里需要改楼层名请和文件名及下面的floorId保持完全一致 "floorId": "sample0",
// 楼层唯一标识符仅能由字母、数字、下划线组成,且不能由数字开头 "title": "样板 0 层",
// 推荐用法第20层就用MT20第38层就用MT38地下6层就用MT_6用下划线代替负号隐藏3层用MT3hh表示隐藏等等 "name": "0",
// 楼层唯一标识符,需要和名字完全一致 "canFlyTo": true,
"title": "样板 0 层", // 楼层中文名 "canUseQuickShop": true,
"name": "0", // 显示在状态栏中的层数 "defaultGround": "ground",
"canFlyTo": true, // 该楼能否被楼传器飞到(不能的话在该楼也不允许使用楼传器) "png": [],
"canUseQuickShop": true, // 该层是否允许使用快捷商店 "bgm": "bgm.mp3",
"defaultGround": "ground", // 默认地面的图块IDterrains中 "item_ratio": 2,
"png": [], // 该层默认显示的所有图片;详细用法请查看文档“自定义素材”中的说明。 "map": [
// "color": [0,0,0,0.3] // 该层的默认画面色调。本项可不写代表无色调如果写需要是一个RGBA数组。 [ 0, 0,220, 0, 0, 20, 87, 3, 65, 64, 44, 43, 42],
// "weather": ["snow",5], // 该层的默认天气。本项可忽略表示晴天,如果写则第一项为"rain"或"snow"代表雨雪第二项为1-10之间的数代表强度。 [ 0,246, 0,246, 0, 20, 0, 3, 58, 59, 60, 61, 41],
"bgm": "bgm.mp3", // 到达该层后默认播放的BGM。本项可忽略。 [219, 0, 0, 0,219, 20, 0, 3, 57, 26, 62, 63, 40],
"item_ratio": 2, // 该层的宝石/血瓶倍率 [ 20, 20,125, 20, 20, 20, 0, 3, 53, 54, 55, 56, 39],
"map": [ // 地图数据需要是13x13建议使用地图生成器来生成 [216,247,256,235,248, 6, 0, 3, 49, 50, 51, 52, 38],
[0, 0, 220, 0, 0, 20, 87, 3, 65, 64, 44, 43, 42], [ 6, 6,125, 6, 6, 6, 0, 1, 45, 46, 47, 48, 37],
[0, 246, 0, 246, 0, 20, 0, 3, 58, 59, 60, 61, 41], [224,254,212,232,204, 5, 0, 1, 31, 32, 34, 33, 36],
[219, 0, 0, 0, 219, 20, 0, 3, 57, 26, 62, 63, 40], [201,205,217,215,207, 5, 0, 1, 27, 28, 29, 30, 35],
[20, 20, 125, 20, 20, 20, 0, 3, 53, 54, 55, 56, 39], [ 5, 5,125, 5, 5, 5, 0, 1, 21, 22, 23, 24, 25],
[216, 247, 256, 235, 248, 6, 0, 3, 49, 50, 51, 52, 38], [ 0, 0,237, 0, 0, 0, 45, 1, 1, 1,121, 1, 1],
[6, 6, 125, 6, 6, 6, 0, 1, 45, 46, 47, 48, 37], [ 4, 4,126, 4, 4, 4, 0, 0, 0, 0, 0, 85,124],
[224, 254, 212, 232, 204, 5, 0, 1, 31, 32, 34, 33, 36], [ 87, 11, 12, 13, 14, 4, 4, 2, 2, 2,122, 2, 2],
[201, 205, 217, 215, 207, 5, 0, 1, 27, 28, 29, 30, 35], [ 88, 89, 90, 91, 92, 93, 94, 2, 81, 82, 83, 84, 86]
[5, 5, 125, 5, 5, 5, 0, 1, 21, 22, 23, 24, 25], ],
[0, 0, 237, 0, 0, 0, 45, 1, 1, 1, 121, 1, 1], "firstArrive": [
[4, 4, 126, 4, 4, 4, 0, 0, 0, 0, 0, 85, 124], "\t[样板提示]首次到达某层可以触发 firstArrive 事件该事件可类似于RMXP中的“自动执行脚本”。\n\n本事件支持一切的事件类型常常用来触发对话例如",
[87, 11, 12, 13, 14, 4, 4, 2, 2, 2, 122, 2, 2], "\t[hero]\b[up,hero]我是谁?我从哪来?我又要到哪去?",
[88, 89, 90, 91, 92, 93, 94, 2, 81, 82, 83, 84, 86], "\t[仙子,fairy]你问我...?我也不知道啊...",
"本层主要对道具、门、怪物等进行介绍,有关事件的各种信息在下一层会有更为详细的说明。"
],
"events": {
"10,9": [
"\t[老人,man]这些是本样板支持的所有的道具。\n\n道具分为三类items, constants, tools。\nitems 为即捡即用类道具,例如宝石、血瓶、剑盾等。\nconstants 为永久道具,例如怪物手册、楼层传送器、幸运金币等。\ntools 为消耗类道具,例如破墙镐、炸弹、中心对称飞行器等。\n\n后两类道具在工具栏中可以看到并使用。",
"\t[老人,man]\b[up]有关道具效果定义在items.js中。\n目前大多数道具已有默认行为如有自定义的需求则需在items.js中修改代码。",
"\t[老人,man]constants 和 tools 各最多只允许12种多了会导致图标溢出。",
"\t[老人,man]\b[up]拾取道具结束后可触发 afterGetItem 事件。\n\n有关事件的各种信息在下一层会有更为详细的说明。",
{
"type": "hide",
"time": 500
}
], ],
"firstArrive": [ // 第一次到该楼层触发的事件 "10,11": [
"\t[样板提示]首次到达某层可以触发 firstArrive 事件该事件可类似于RMXP中的“自动执行脚本”。\n\n本事件支持一切的事件类型常常用来触发对话例如", "\t[老人,woman]这些是门,需要对应的钥匙打开。\n机关门必须使用特殊的开法。",
"\t[hero]\b[up,hero]我是谁?我从哪来?我又要到哪去?", "\t[老人,woman]开门后可触发 afterOpenDoor 事件。\n\n有关事件的各种信息在下一层会有更为详细的说明。",
"\t[仙子,fairy]你问我...?我也不知道啊...", {
"本层主要对道具、门、怪物等进行介绍,有关事件的各种信息在下一层会有更为详细的说明。", "type": "hide",
"time": 500
}
], ],
"events": { // 该楼的所有可能事件列表 "2,10": [
"10,9": [ // 守着道具的老人 "\t[老人,womanMagician]这些是路障、楼梯、传送门。",
"\t[老人,man]这些是本样板支持的所有的道具。\n\n道具分为三类items, constants, tools。\nitems 为即捡即用类道具,例如宝石、血瓶、剑盾等。\nconstants 为永久道具,例如怪物手册、楼层传送器、幸运金币等。\ntools 为消耗类道具,例如破墙镐、炸弹、中心对称飞行器等。\n\n后两类道具在工具栏中可以看到并使用。", "\t[老人,womanMagician]血网的伤害数值、中毒后每步伤害数值、衰弱时攻防下降的数值,都在 data.js 内定义。\n\n路障同样会尽量被自动寻路绕过。",
"\t[老人,man]\b[up]有关道具效果定义在items.js中。\n目前大多数道具已有默认行为如有自定义的需求则需在items.js中修改代码。", "\t[老人,womanMagician]楼梯和传送门需要在changeFloor中定义目标楼层和位置可参见样板里已有的的写法。",
"\t[老人,man]constants 和 tools 各最多只允许12种多了会导致图标溢出。", {
"\t[老人,man]\b[up]拾取道具结束后可触发 afterGetItem 事件。\n\n有关事件的各种信息在下一层会有更为详细的说明。", "type": "hide",
{"type": "hide", "time": 500} // 消失 "time": 500
], }
"10,11": [ // 守着门的老人 ],
"\t[老人,woman]这些是门,需要对应的钥匙打开。\n机关门必须使用特殊的开法。", "2,8": [
"\t[老人,woman]开门后可触发 afterOpenDoor 事件。\n\n有关事件的各种信息在下一层会有更为详细的说明。", "\t[老人,magician]这些都是各种各样的怪物所有怪物的数据都在enemys.js中设置。",
{"type": "hide", "time": 500} "\t[老人,magician]这批怪物分别为普通、先攻、魔攻、坚固、2连击、3连击、4连击、破甲、反击、净化。",
], "\t[老人,magician]打败怪物后可触发 afterBattle 事件。\n\n有关事件的各种信息在下一层会有更为详细的说明。",
"2,10": [ // 守着楼梯、传送门、路障的老人 {
"\t[老人,womanMagician]这些是路障、楼梯、传送门。", "type": "hide",
"\t[老人,womanMagician]血网的伤害数值、中毒后每步伤害数值、衰弱时攻防下降的数值,都在 data.js 内定义。\n\n路障同样会尽量被自动寻路绕过。", "time": 500
"\t[老人,womanMagician]楼梯和传送门需要在changeFloor中定义目标楼层和位置可参见样板里已有的的写法。", }
{"type": "hide", "time": 500} ],
], "2,5": [
"2,8": [ // 守着第一批怪物的老人 "\t[老人,magician]模仿、吸血、中毒、衰弱、诅咒。\n\n请注意吸血怪需要设置value为吸血数值可参见样板中黑暗大法师的写法。",
"\t[老人,magician]这些都是各种各样的怪物所有怪物的数据都在enemys.js中设置。", {
"\t[老人,magician]这批怪物分别为普通、先攻、魔攻、坚固、2连击、3连击、4连击、破甲、反击、净化。", "type": "hide",
"\t[老人,magician]打败怪物后可触发 afterBattle 事件。\n\n有关事件的各种信息在下一层会有更为详细的说明。", "time": 500
{"type": "hide", "time": 500} }
], ],
"2,5": [ // 守着第二批怪物的老人 "2,3": [
"\t[老人,magician]模仿、吸血、中毒、衰弱、诅咒。\n\n请注意吸血怪需要设置value为吸血数值可参见样板中黑暗大法师的写法。", "\t[老人,magician]领域、夹击。\n请注意领域怪需要设置value为伤害数值可参见样板中初级巫师的写法。",
{"type": "hide", "time": 500} "\t[老人,magician]夹击和领域同时发生时先计算领域,再夹击。\n自动寻路同样会尽量绕过你设置的这些点。",
], {
"2,3": [ // 守着第三批怪物的老人 "type": "hide",
"\t[老人,magician]领域、夹击。\n请注意领域怪需要设置value为伤害数值可参见样板中初级巫师的写法。", "time": 500
"\t[老人,magician]夹击和领域同时发生时先计算领域,再夹击。\n自动寻路同样会尽量绕过你设置的这些点。", }
{"type": "hide", "time": 500} ],
], "12,10": {
"12,10": { // 隐藏的仙子 "trigger": "action",
"enable": false, // enable: false代表初始时禁用事件 "enable": false,
"data": [ "noPass": null,
"\t[仙子,fairy]只有楼上启用事件后,才能看到我并可以和我对话来触发事件。", "displayDamage": true,
{"type": "hide", "time": 500} "data": [
] "\t[仙子,fairy]只有楼上启用事件后,才能看到我并可以和我对话来触发事件。",
}, {
"type": "hide",
"time": 500
}
]
}
},
"changeFloor": {
"7,9": {
"floorId": "sample1",
"stair": "downFloor"
}, },
"changeFloor": { // 楼层转换事件该事件不能和上面的events有冲突同位置点否则会被覆盖 "6,0": {
"7,9": {"floorId": "sample1", "stair": "downFloor"}, "floorId": "sample1",
"6,0": {"floorId": "sample1", "stair": "downFloor"}, // 目标点sample1层的下楼梯位置 "stair": "downFloor"
"0,11": {"floorId": "sample0", "loc": [0,12]}, // 目标点sample0层的x=0,y=12位置
"0,12": {"floorId": "sample0", "stair": "upFloor"}, // 注意目标层有多个楼梯的话写stair可能会导致到达位置不确定。这时候推荐写loc指明目标点位置。
"1,12": {"floorId": "sample0", "loc": [1,12]},
"2,12": {"floorId": "sample0", "loc": [2,12]},
"3,12": {"floorId": "sample0", "loc": [6,1], "direction": "up"}, // 切换楼层后勇士面对上方
"4,12": {"floorId": "sample0", "loc": [0,9], "direction": "left", "time": 1000}, // 切换楼层后勇士面对左边切换动画1000ms
"5,12": {"floorId": "sample0", "loc": [6,10], "time": 0, "portalWithoutTrigger": false}, // time=0表示无切换时间
"6,12": {"floorId": "sample0", "loc": [10,10], "direction": "left", "time": 1000},
}, },
"afterBattle": { // 战斗后可能触发的事件列表 "0,11": {
"2,6": ["\t[ghostSkeleton]不可能,你怎么可能打败我!\n一个打败怪物触发的事件"], "floorId": "sample0",
"loc": [
0,
12
]
}, },
"afterGetItem": { // 获得道具后可能触发的事件列表 "0,12": {
"11,8": ["由于状态栏放不下绿钥匙和铁门钥匙均视为tools放入工具栏中。\n碰到绿门和铁门仍然会自动使用开门。"], "floorId": "sample0",
"8,6": ["由于吸血和夹击等的存在,血瓶默认自动被绕路。\n你可以修改data.js中的系统Flag来设置这一项。"], "stair": "upFloor"
"8,7": ["如需修改消耗品的效果,请前往 data.js 找到并修改values内对应的具体数值即可。\n如果有更高级的需求如每个区域宝石数值变化详见doc文档内的做法说明。"], },
"10,7": ["在 data.js 的系统Flag中设置是否启用魔防。\n如果不启用魔防则不会在状态栏显示。"], "1,12": {
"9,5": [ "floorId": "sample0",
"每层楼的 canFlyTo 决定了该楼层能否被飞到。\n\n不能被飞到的楼层也无法使用楼层传送器。", "loc": [
"飞行的楼层顺序由 main.js 中 floorIds 加载顺序所决定。\n\n是否必须在楼梯边使用楼传器由 data.js 中的系统Flag所决定。" 1,
12
]
},
"2,12": {
"floorId": "sample0",
"loc": [
2,
12
]
},
"3,12": {
"floorId": "sample0",
"loc": [
6,
1
], ],
"10,5": ["破墙镐是破面前的墙壁还是四个方向的墙壁由data.js中的系统Flag所决定。"], "direction": "up"
"8,4": [ },
"炸弹是只能炸面前的怪物还是四个方向的怪物由data.js中的系统Flag所决定。\n如只能炸前方怪物则和上面的圣锤等价。\n不能被炸的怪物在enemys中可以定义可参见样板里黑衣魔王和黑暗大法师的写法。", "4,12": {
"floorId": "sample0",
"loc": [
0,
9
], ],
"10,4": ["“上楼”和“下楼”的目标层由 main.js 的 floorIds顺序所决定。"], "direction": "left",
"9,2": ["该道具默认是大黄门钥匙,如需改为钥匙盒直接修改 data.js 中的系统Flag即可。"], "time": 1000
"10,2": ["屠龙匕首目前未被定义,可能需要自行实现功能。\n有关如何实现一个道具功能参见doc文档。"],
}, },
"afterOpenDoor": { // 开完门后可能触发的事件列表 "5,12": {
"11,12": ["你开了一个绿门触发了一个afterOpenDoor事件"] "floorId": "sample0",
"loc": [
6,
10
],
"time": 0,
"portalWithoutTrigger": false
}, },
"cannotMove": { // 每个图块不可通行的方向 "6,12": {
// 可以在这里定义每个点不能前往哪个方向,例如悬崖边不能跳下去 "floorId": "sample0",
// "x,y": ["up", "left"], // (x,y)点不能往上和左走 "loc": [
10,
}, 10
],
} "direction": "left",
"time": 1000
}
},
"afterBattle": {
"2,6": [
"\t[ghostSkeleton]不可能,你怎么可能打败我!\n一个打败怪物触发的事件"
]
},
"afterGetItem": {
"11,8": [
"由于状态栏放不下绿钥匙和铁门钥匙均视为tools放入工具栏中。\n碰到绿门和铁门仍然会自动使用开门。"
],
"8,6": [
"由于吸血和夹击等的存在,血瓶默认自动被绕路。\n你可以修改data.js中的系统Flag来设置这一项。"
],
"8,7": [
"如需修改消耗品的效果,请前往 data.js 找到并修改values内对应的具体数值即可。\n如果有更高级的需求如每个区域宝石数值变化详见doc文档内的做法说明。"
],
"10,7": [
"在 data.js 的系统Flag中设置是否启用魔防。\n如果不启用魔防则不会在状态栏显示。"
],
"9,5": [
"每层楼的 canFlyTo 决定了该楼层能否被飞到。\n\n不能被飞到的楼层也无法使用楼层传送器。",
"飞行的楼层顺序由 main.js 中 floorIds 加载顺序所决定。\n\n是否必须在楼梯边使用楼传器由 data.js 中的系统Flag所决定。"
],
"10,5": [
"破墙镐是破面前的墙壁还是四个方向的墙壁由data.js中的系统Flag所决定。"
],
"8,4": [
"炸弹是只能炸面前的怪物还是四个方向的怪物由data.js中的系统Flag所决定。\n如只能炸前方怪物则和上面的圣锤等价。\n不能被炸的怪物在enemys中可以定义可参见样板里黑衣魔王和黑暗大法师的写法。"
],
"10,4": [
"“上楼”和“下楼”的目标层由 main.js 的 floorIds顺序所决定。"
],
"9,2": [
"该道具默认是大黄门钥匙,如需改为钥匙盒直接修改 data.js 中的系统Flag即可。"
],
"10,2": [
"屠龙匕首目前未被定义,可能需要自行实现功能。\n有关如何实现一个道具功能参见doc文档。"
]
},
"afterOpenDoor": {
"11,12": [
"你开了一个绿门触发了一个afterOpenDoor事件"
]
},
"cannotMove": {},
}

View File

@ -1,221 +1,245 @@
icons_4665ee12_3a1f_44a4_bea3_0fccba634dc1 = icons_4665ee12_3a1f_44a4_bea3_0fccba634dc1 =
{ {
'hero': { "hero": {
'down': {'loc': 0, 'stop': 0, 'leftFoot': 1, 'rightFoot': 3}, "down": {
'left': {'loc': 1, 'stop': 0, 'leftFoot': 1, 'rightFoot': 3}, "loc": 0,
'right': {'loc': 2, 'stop': 0, 'leftFoot': 1, 'rightFoot': 3}, "stop": 0,
'up': {'loc': 3, 'stop': 0, 'leftFoot': 1, 'rightFoot': 3} "leftFoot": 1,
"rightFoot": 3
}, },
'terrains': { "left": {
'ground': 0, "loc": 1,
'grass': 1, "stop": 0,
'grass2': 2, "leftFoot": 1,
'yellowWall': 3, "rightFoot": 3
'whiteWall': 4,
'blueWall': 5,
'snowGround': 6,
'ground2': 7,
'ground3': 8,
'ground4': 9,
'sand': 10,
'ground5': 11,
'yellowWall2': 12,
'whiteWall2': 13,
'blueWall2': 14,
'blockWall': 15,
'grayWall': 16,
'white': 17,
'ground6': 18,
'soil': 19,
'star': 20,
'lava': 21,
'ice': 22,
'downFloor': 23,
'upFloor': 24,
'yellowDoor': 25,
'blueDoor': 26,
'redDoor': 27,
'greenDoor': 28,
'specialDoor': 29,
'steelDoor': 30,
'blueShop-left': 31,
'blueShop-right': 32,
'pinkShop-left': 33,
'pinkShop-right': 34,
'arrowUp': 35,
'arrowDown': 36,
'arrowLeft': 37,
'arrowRight': 38,
'light': 39,
'darkLight': 40,
'ski': 41,
'flower': 42,
'box': 43,
'boxed': 44
}, },
'animates': { "right": {
'star': 0, "loc": 2,
'lava': 1, "stop": 0,
'waterWall': 2, "leftFoot": 1,
'yellowDoor': 3, "rightFoot": 3
'blueDoor': 4,
'redDoor': 5,
'greenDoor': 6,
'specialDoor': 7,
'blueWallDoor': 8,
'yellowWallDoor': 9,
'whiteWallDoor': 10,
'steelDoor': 11,
'lavaDoor': 12,
'grayLavaDoor': 13,
'starDoor': 14,
'mockBlueWallDoor': 15,
'mockYellowWallDoor': 16,
'mockWhiteWallDoor': 17,
'iceYellowWallDoor': 18,
'starPortal': 19,
'exclamation': 20,
'portal': 21,
'switch': 22,
'lavaNet': 23,
'poisonNet': 24,
'weakNet': 25,
'curseNet': 26,
'downPortal': 27,
'leftPortal': 28,
'rightPortal': 29,
'upPortal': 30,
'water': 31,
}, },
'npcs': { "up": {
'man': 0, "loc": 3,
'woman': 1, "stop": 0,
'thief': 2, "leftFoot": 1,
'fairy': 3, "rightFoot": 3
'magician': 4,
'womanMagician': 5,
'oldMan': 6,
'child': 7,
'wood': 8,
'pinkShop': 9,
'blueShop': 10,
'princess': 11
}, },
'enemys': { "height": 48
'greenSlime': 0, },
'redSlime': 1, "terrains": {
'blackSlime': 2, "ground": 0,
'slimelord': 3, "grass": 1,
'bat': 4, "grass2": 2,
'bigBat': 5, "yellowWall": 3,
'redBat': 6, "whiteWall": 4,
'vampire': 7, "blueWall": 5,
'skeleton': 8, "snowGround": 6,
'skeletonSoilder': 9, "ground2": 7,
'skeletonCaptain': 10, "ground3": 8,
'ghostSkeleton': 11, "ground4": 9,
'zombie': 12, "sand": 10,
'zombieKnight': 13, "ground5": 11,
'rock': 14, "yellowWall2": 12,
'slimeMan': 15, "whiteWall2": 13,
'bluePriest': 16, "blueWall2": 14,
'redPriest': 17, "blockWall": 15,
'brownWizard': 18, "grayWall": 16,
'redWizard': 19, "white": 17,
'yellowGuard': 20, "ground6": 18,
'blueGuard': 21, "soil": 19,
'redGuard': 22, "star": 20,
'swordsman': 23, "lava": 21,
'soldier': 24, "ice": 22,
'yellowKnight': 25, "downFloor": 23,
'redKnight': 26, "upFloor": 24,
'darkKnight': 27, "yellowDoor": 25,
'blackKing': 28, "blueDoor": 26,
'yellowKing': 29, "redDoor": 27,
'greenKing': 30, "greenDoor": 28,
'blueKnight': 31, "specialDoor": 29,
'goldSlime': 32, "steelDoor": 30,
'poisonSkeleton': 33, "blueShop-left": 31,
'poisonBat': 34, "blueShop-right": 32,
'steelRock': 35, "pinkShop-left": 33,
'skeletonPriest': 36, "pinkShop-right": 34,
'skeletonKing': 37, "arrowUp": 35,
'skeletonWizard': 38, "arrowDown": 36,
'redSkeletonCaption': 39, "arrowLeft": 37,
'badHero': 40, "arrowRight": 38,
'demon': 41, "light": 39,
'demonPriest': 42, "darkLight": 40,
'goldHornSlime': 43, "ski": 41,
'redKing': 44, "flower": 42,
'whiteKing': 45, "box": 43,
'blackMagician': 46, "boxed": 44
'silverSlime': 47, },
'swordEmperor': 48, "animates": {
'whiteHornSlime': 49, "star": 0,
'badPrincess': 50, "lava": 1,
'badFairy': 51, "waterWall": 2,
'grayPriest': 52, "yellowDoor": 3,
'redSwordsman': 53, "blueDoor": 4,
'whiteGhost': 54, "redDoor": 5,
'poisonZombie': 55, "greenDoor": 6,
'magicDragon': 56, "specialDoor": 7,
'octopus': 57, "blueWallDoor": 8,
'darkFairy': 58, "yellowWallDoor": 9,
'greenKnight': 59, "whiteWallDoor": 10,
}, "steelDoor": 11,
'items': { "lavaDoor": 12,
'yellowKey': 0, "grayLavaDoor": 13,
'blueKey': 1, "starDoor": 14,
'redKey': 2, "mockBlueWallDoor": 15,
'greenKey': 3, "mockYellowWallDoor": 16,
'steelKey': 4, "mockWhiteWallDoor": 17,
'bigKey': 6, "iceYellowWallDoor": 18,
'redJewel': 16, "starPortal": 19,
'blueJewel': 17, "exclamation": 20,
'greenJewel': 18, "portal": 21,
'yellowJewel': 19, "switch": 22,
'redPotion': 20, "lavaNet": 23,
'bluePotion': 21, "poisonNet": 24,
'greenPotion': 22, "weakNet": 25,
'yellowPotion': 23, "curseNet": 26,
'sword0': 60, "downPortal": 27,
'sword1': 50, "leftPortal": 28,
'sword2': 51, "rightPortal": 29,
'sword3': 52, "upPortal": 30,
'sword4': 53, "water": 31
'sword5': 54, },
'shield0': 61, "npcs": {
'shield1': 55, "man": 0,
'shield2': 56, "woman": 1,
'shield3': 57, "thief": 2,
'shield4': 58, "fairy": 3,
'shield5': 59, "magician": 4,
'book': 9, "womanMagician": 5,
'fly': 12, "oldMan": 6,
'pickaxe': 45, "child": 7,
'icePickaxe': 44, "wood": 8,
'bomb': 43, "pinkShop": 9,
'centerFly': 13, "blueShop": 10,
'upFly': 15, "princess": 11
'downFly': 14, },
'coin': 11, "enemys": {
'snow': 41, "greenSlime": 0,
'cross': 40, "redSlime": 1,
'superPotion': 29, "blackSlime": 2,
'earthquake': 8, "slimelord": 3,
'poisonWine': 24, "bat": 4,
'weakWine': 25, "bigBat": 5,
'curseWine': 27, "redBat": 6,
'superWine': 28, "vampire": 7,
'knife': 42, "skeleton": 8,
'moneyPocket': 46, "skeletonSoilder": 9,
'shoes': 47, "skeletonCaptain": 10,
'hammer': 48 "ghostSkeleton": 11,
}, "zombie": 12,
'autotile': { // 所有的Autotile列表后面的index简单取0即可 "zombieKnight": 13,
'autotile': 0, "rock": 14,
'autotile1': 0, "slimeMan": 15,
'autotile2': 0, "bluePriest": 16,
'autotile3': 0, "redPriest": 17,
} "brownWizard": 18,
"redWizard": 19,
"yellowGuard": 20,
"blueGuard": 21,
"redGuard": 22,
"swordsman": 23,
"soldier": 24,
"yellowKnight": 25,
"redKnight": 26,
"darkKnight": 27,
"blackKing": 28,
"yellowKing": 29,
"greenKing": 30,
"blueKnight": 31,
"goldSlime": 32,
"poisonSkeleton": 33,
"poisonBat": 34,
"steelRock": 35,
"skeletonPriest": 36,
"skeletonKing": 37,
"skeletonWizard": 38,
"redSkeletonCaption": 39,
"badHero": 40,
"demon": 41,
"demonPriest": 42,
"goldHornSlime": 43,
"redKing": 44,
"whiteKing": 45,
"blackMagician": 46,
"silverSlime": 47,
"swordEmperor": 48,
"whiteHornSlime": 49,
"badPrincess": 50,
"badFairy": 51,
"grayPriest": 52,
"redSwordsman": 53,
"whiteGhost": 54,
"poisonZombie": 55,
"magicDragon": 56,
"octopus": 57,
"darkFairy": 58,
"greenKnight": 59,
"test": 60
},
"items": {
"yellowKey": 0,
"blueKey": 1,
"redKey": 2,
"greenKey": 3,
"steelKey": 4,
"bigKey": 6,
"redJewel": 16,
"blueJewel": 17,
"greenJewel": 18,
"yellowJewel": 19,
"redPotion": 20,
"bluePotion": 21,
"greenPotion": 22,
"yellowPotion": 23,
"sword0": 60,
"sword1": 50,
"sword2": 51,
"sword3": 52,
"sword4": 53,
"sword5": 54,
"shield0": 61,
"shield1": 55,
"shield2": 56,
"shield3": 57,
"shield4": 58,
"shield5": 59,
"book": 9,
"fly": 12,
"pickaxe": 45,
"icePickaxe": 44,
"bomb": 43,
"centerFly": 13,
"upFly": 15,
"downFly": 14,
"coin": 11,
"snow": 41,
"cross": 40,
"superPotion": 29,
"earthquake": 8,
"poisonWine": 24,
"weakWine": 25,
"curseWine": 27,
"superWine": 28,
"knife": 42,
"moneyPocket": 46,
"shoes": 47,
"hammer": 48,
"ttt": 49,
"sgg": 35
},
"autotile": {
"autotile": 0,
"autotile1": 0,
"autotile2": 0,
"autotile3": 0
}
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 64 KiB

View File

@ -1,117 +1,281 @@
items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
{ {
"items": {
"items" : { "yellowKey": {
// 钥匙 "cls": "keys",
'yellowKey': {'cls': 'keys', 'name': '黄钥匙'}, "name": "黄钥匙"
'blueKey': {'cls': 'keys', 'name': '蓝钥匙'}, },
'redKey': {'cls': 'keys', 'name': '红钥匙'}, "blueKey": {
"cls": "keys",
// 宝石、血瓶 "name": "蓝钥匙"
'redJewel': {'cls': 'items', 'name': '红宝石'}, },
'blueJewel': {'cls': 'items', 'name': '蓝宝石'}, "redKey": {
'greenJewel': {'cls': 'items', 'name': '绿宝石'}, "cls": "keys",
'yellowJewel': {'cls': 'items', 'name': '黄宝石'}, "name": "红钥匙"
'redPotion': {'cls': 'items', 'name': '红血瓶'}, },
'bluePotion': {'cls': 'items', 'name': '蓝血瓶'}, "redJewel": {
'yellowPotion': {'cls': 'items', 'name': '黄血瓶'}, "cls": "items",
'greenPotion': {'cls': 'items', 'name': '绿血瓶'}, "name": "红宝石"
'sword1': {'cls': 'items', 'name': '铁剑', 'isEquipment': true}, },
'sword2': {'cls': 'items', 'name': '银剑', 'isEquipment': true}, "blueJewel": {
'sword3': {'cls': 'items', 'name': '骑士剑', 'isEquipment': true}, "cls": "items",
'sword4': {'cls': 'items', 'name': '圣剑', 'isEquipment': true}, "name": "蓝宝石"
'sword5': {'cls': 'items', 'name': '神圣剑', 'isEquipment': true}, },
'shield1': {'cls': 'items', 'name': '铁盾', 'isEquipment': true}, "greenJewel": {
'shield2': {'cls': 'items', 'name': '银盾', 'isEquipment': true}, "cls": "items",
'shield3': {'cls': 'items', 'name': '骑士盾', 'isEquipment': true}, "name": "绿宝石"
'shield4': {'cls': 'items', 'name': '圣盾', 'isEquipment': true}, },
'shield5': {'cls': 'items', 'name': '神圣盾', 'isEquipment': true}, "yellowJewel": {
'superPotion': {'cls': 'items', 'name': '圣水'}, "cls": "items",
'moneyPocket': {'cls': 'items', 'name': '金钱袋'}, "name": "黄宝石"
},
// 物品 "redPotion": {
'sword0': {'cls': 'constants', 'name': '折断的剑', 'text': '没有任何作用的剑,相当于脱掉装备。'}, "cls": "items",
'shield0': {'cls': 'constants', 'name': '残破的盾', 'text': '没有任何作用的盾,相当于脱掉装备。'}, "name": "红血瓶"
'book': {'cls': 'constants', 'name': '怪物手册', 'text': '可以查看当前楼层各怪物属性'}, },
'fly': {'cls': 'constants', 'name': '楼层传送器', 'text': '可以自由往来去过的楼层'}, "bluePotion": {
'coin': {'cls': 'constants', 'name': '幸运金币', 'text': '持有时打败怪物可得双倍金币'}, "cls": "items",
'snow': {'cls': 'constants', 'name': '冰冻徽章', 'text': '可以将四周的熔岩变成平地'}, "name": "蓝血瓶"
'cross': {'cls': 'constants', 'name': '十字架', 'text': '持有后无视怪物的无敌属性'}, },
'knife': {'cls': 'constants', 'name': '屠龙匕首', 'text': '该道具尚未被定义'}, "yellowPotion": {
'shoes': {'cls': 'constants', 'name': '绿鞋', 'text': '持有时无视负面地形'}, "cls": "items",
"name": "黄血瓶"
// 道具 },
'bigKey': {'cls': 'tools', 'name': '大黄门钥匙', 'text': '可以开启当前层所有黄门'}, "greenPotion": {
'greenKey': {'cls': 'tools', 'name': '绿钥匙', 'text': '可以打开一扇绿门'}, "cls": "items",
'steelKey': {'cls': 'tools', 'name': '铁门钥匙', 'text': '可以打开一扇铁门'}, "name": "绿血瓶"
'pickaxe': {'cls': 'tools', 'name': '破墙镐', 'text': '可以破坏勇士面前的墙'}, },
'icePickaxe': {'cls': 'tools', 'name': '破冰镐', 'text': '可以破坏勇士面前的一堵冰墙'}, "sword1": {
'bomb': {'cls': 'tools', 'name': '炸弹', 'text': '可以炸掉勇士面前的怪物'}, "cls": "items",
'centerFly': {'cls': 'tools', 'name': '中心对称飞行器', 'text': '可以飞向当前楼层中心对称的位置'}, "name": "铁剑",
'upFly': {'cls': 'tools', 'name': '上楼器', 'text': '可以飞往楼上的相同位置'}, "isEquipment": true
'downFly': {'cls': 'tools', 'name': '下楼器', 'text': '可以飞往楼下的相同位置'}, },
'earthquake': {'cls': 'tools', 'name': '地震卷轴', 'text': '可以破坏当前层的所有墙'}, "sword2": {
'poisonWine': {'cls': 'tools', 'name': '解毒药水', 'text': '可以解除中毒状态'}, "cls": "items",
'weakWine': {'cls': 'tools', 'name': '解衰药水', 'text': '可以解除衰弱状态'}, "name": "银剑",
'curseWine': {'cls': 'tools', 'name': '解咒药水', 'text': '可以解除诅咒状态'}, "isEquipment": true
'superWine': {'cls': 'tools', 'name': '万能药水', 'text': '可以解除所有不良状态'}, },
'hammer': {'cls': 'tools', 'name': '圣锤', 'text': '可以炸掉勇士面前的怪物'} "sword3": {
}, "cls": "items",
"name": "骑士剑",
"isEquipment": true
},
"sword4": {
"itemEffect" : { "cls": "items",
"redJewel":"core.status.hero.atk += core.values.redJewel * ratio", "name": "圣剑",
"blueJewel":"core.status.hero.def += core.values.blueJewel * ratio", "isEquipment": true
"greenJewel":"core.status.hero.mdef += core.values.greenJewel * ratio", },
"sword5": {
"yellowJewel":"core.status.hero.hp+=1000;core.status.hero.atk+=6;core.status.hero.def+=6;core.status.hero.mdef+=10;", "cls": "items",
// 黄宝石属性:需自己定义 "name": "神圣剑",
"redPotion":"core.status.hero.hp += core.values.redPotion * ratio", "isEquipment": true
"bluePotion":"core.status.hero.hp += core.values.bluePotion * ratio", },
"yellowPotion":"core.status.hero.hp += core.values.yellowPotion * ratio", "shield1": {
"greenPotion":"core.status.hero.hp += core.values.greenPotion * ratio", "cls": "items",
"sword1":"core.status.hero.atk += core.values.sword1", "name": "铁盾",
"sword2":"core.status.hero.atk += core.values.sword2", "isEquipment": true
"sword3":"core.status.hero.atk += core.values.sword3", },
"sword4":"core.status.hero.atk += core.values.sword4", "shield2": {
"sword5":"core.status.hero.atk += core.values.sword5", "cls": "items",
"shield1":"core.status.hero.def += core.values.shield1", "name": "银盾",
"shield2":"core.status.hero.def += core.values.shield2", "isEquipment": true
"shield3":"core.status.hero.def += core.values.shield3", },
"shield4":"core.status.hero.def += core.values.shield4", "shield3": {
"shield5":"core.status.hero.def += core.values.shield5", "cls": "items",
"name": "骑士盾",
"bigKey":"core.status.hero.items.keys.yellowKey++;core.status.hero.items.keys.blueKey++;core.status.hero.items.keys.redKey++;", "isEquipment": true
// 只有是钥匙盒才会执行这一步 },
"superPotion":"core.status.hero.hp *= 2", "shield4": {
"moneyPocket":"core.status.hero.money += core.values.moneyPocket", "cls": "items",
}, "name": "圣盾",
"isEquipment": true
},
"itemEffectTip" : { "shield5": {
"redJewel":"',攻击+'+core.values.redJewel * ratio", "cls": "items",
"blueJewel":"',防御+'+core.values.blueJewel * ratio", "name": "神圣盾",
"greenJewel":"',魔防+'+core.values.greenJewel * ratio", "isEquipment": true
"yellowJewel":"',全属性提升'", },
"redPotion":"',生命+'+core.values.redPotion * ratio", "superPotion": {
"bluePotion":"',生命+'+core.values.bluePotion * ratio", "cls": "items",
"yellowPotion":"',生命+'+core.values.yellowPotion * ratio", "name": "圣水"
"greenPotion":"',生命+'+core.values.greenPotion * ratio", },
"sword1":"',攻击+'+core.values.sword1", "moneyPocket": {
"sword2":"',攻击+'+core.values.sword2", "cls": "items",
"sword3":"',攻击+'+core.values.sword3", "name": "金钱袋"
"sword4":"',攻击+'+core.values.sword4", },
"sword5":"',攻击+'+core.values.sword5", "sword0": {
"shield1":"',防御+'+core.values.shield1", "cls": "constants",
"shield2":"',防御+'+core.values.shield2", "name": "折断的剑",
"shield3":"',防御+'+core.values.shield3", "text": "没有任何作用的剑,相当于脱掉装备。"
"shield4":"',防御+'+core.values.shield4", },
"shield5":"',防御+'+core.values.shield5", "shield0": {
"bigKey":"',全钥匙+1'", "cls": "constants",
"superPotion":"',生命值翻倍'", "name": "残破的盾",
"moneyPocket":"',金币+'+core.values.moneyPocket", "text": "没有任何作用的盾,相当于脱掉装备。"
} },
"book": {
"cls": "constants",
"name": "怪物手册",
"text": "可以查看当前楼层各怪物属性"
},
"fly": {
"cls": "constants",
"name": "楼层传送器",
"text": "可以自由往来去过的楼层"
},
"coin": {
"cls": "constants",
"name": "幸运金币",
"text": "持有时打败怪物可得双倍金币"
},
"snow": {
"cls": "constants",
"name": "冰冻徽章",
"text": "可以将四周的熔岩变成平地"
},
"cross": {
"cls": "constants",
"name": "十字架",
"text": "持有后无视怪物的无敌属性"
},
"knife": {
"cls": "constants",
"name": "屠龙匕首",
"text": "该道具尚未被定义"
},
"shoes": {
"cls": "constants",
"name": "绿鞋",
"text": "持有时无视负面地形"
},
"bigKey": {
"cls": "tools",
"name": "大黄门钥匙",
"text": "可以开启当前层所有黄门"
},
"greenKey": {
"cls": "tools",
"name": "绿钥匙",
"text": "可以打开一扇绿门"
},
"steelKey": {
"cls": "tools",
"name": "铁门钥匙",
"text": "可以打开一扇铁门"
},
"pickaxe": {
"cls": "tools",
"name": "破墙镐",
"text": "可以破坏勇士四周的墙"
},
"icePickaxe": {
"cls": "tools",
"name": "破冰镐",
"text": "可以破坏勇士面前的一堵冰墙"
},
"bomb": {
"cls": "tools",
"name": "炸弹",
"text": "可以炸掉勇士四周的怪物"
},
"centerFly": {
"cls": "tools",
"name": "中心对称飞行器",
"text": "可以飞向当前楼层中心对称的位置"
},
"upFly": {
"cls": "tools",
"name": "上楼器",
"text": "可以飞往楼上的相同位置"
},
"downFly": {
"cls": "tools",
"name": "下楼器",
"text": "可以飞往楼下的相同位置"
},
"earthquake": {
"cls": "tools",
"name": "地震卷轴",
"text": "可以破坏当前层的所有墙"
},
"poisonWine": {
"cls": "tools",
"name": "解毒药水",
"text": "可以解除中毒状态"
},
"weakWine": {
"cls": "tools",
"name": "解衰药水",
"text": "可以解除衰弱状态"
},
"curseWine": {
"cls": "tools",
"name": "解咒药水",
"text": "可以解除诅咒状态"
},
"superWine": {
"cls": "tools",
"name": "万能药水",
"text": "可以解除所有不良状态"
},
"hammer": {
"cls": "tools",
"name": "圣锤",
"text": "可以炸掉勇士面前的怪物"
},
"ttt": {
"cls": "items",
"name": "新物品"
},
"sgg": {
"cls": "items",
"name": "新物品"
}
},
"itemEffect": {
"redJewel": "core.status.hero.atk += core.values.redJewel * ratio",
"blueJewel": "core.status.hero.def += core.values.blueJewel * ratio",
"greenJewel": "core.status.hero.mdef += core.values.greenJewel * ratio",
"yellowJewel": "core.status.hero.hp+=1000;core.status.hero.atk+=6;core.status.hero.def+=6;core.status.hero.mdef+=10;",
"redPotion": "core.status.hero.hp += core.values.redPotion * ratio",
"bluePotion": "core.status.hero.hp += core.values.bluePotion * ratio",
"yellowPotion": "core.status.hero.hp += core.values.yellowPotion * ratio",
"greenPotion": "core.status.hero.hp += core.values.greenPotion * ratio",
"sword1": "core.status.hero.atk += core.values.sword1",
"sword2": "core.status.hero.atk += core.values.sword2",
"sword3": "core.status.hero.atk += core.values.sword3",
"sword4": "core.status.hero.atk += core.values.sword4",
"sword5": "core.status.hero.atk += core.values.sword5",
"shield1": "core.status.hero.def += core.values.shield1",
"shield2": "core.status.hero.def += core.values.shield2",
"shield3": "core.status.hero.def += core.values.shield3",
"shield4": "core.status.hero.def += core.values.shield4",
"shield5": "core.status.hero.def += core.values.shield5",
"bigKey": "core.status.hero.items.keys.yellowKey++;core.status.hero.items.keys.blueKey++;core.status.hero.items.keys.redKey++;",
"superPotion": "core.status.hero.hp *= 2",
"moneyPocket": "core.status.hero.money += core.values.moneyPocket"
},
"itemEffectTip": {
"redJewel": "',攻击+'+core.values.redJewel * ratio",
"blueJewel": "',防御+'+core.values.blueJewel * ratio",
"greenJewel": "',魔防+'+core.values.greenJewel * ratio",
"yellowJewel": "',全属性提升'",
"redPotion": "',生命+'+core.values.redPotion * ratio",
"bluePotion": "',生命+'+core.values.bluePotion * ratio",
"yellowPotion": "',生命+'+core.values.yellowPotion * ratio",
"greenPotion": "',生命+'+core.values.greenPotion * ratio",
"sword1": "',攻击+'+core.values.sword1",
"sword2": "',攻击+'+core.values.sword2",
"sword3": "',攻击+'+core.values.sword3",
"sword4": "',攻击+'+core.values.sword4",
"sword5": "',攻击+'+core.values.sword5",
"shield1": "',防御+'+core.values.shield1",
"shield2": "',防御+'+core.values.shield2",
"shield3": "',防御+'+core.values.shield3",
"shield4": "',防御+'+core.values.shield4",
"shield5": "',防御+'+core.values.shield5",
"bigKey": "',全钥匙+1'",
"superPotion": "',生命值翻倍'",
"moneyPocket": "',金币+'+core.values.moneyPocket"
}
} }

View File

@ -1,197 +1,698 @@
maps_90f36752_8815_4be8_b32b_d7fad1d0542e = maps_90f36752_8815_4be8_b32b_d7fad1d0542e =
{ {
////////////////////////// 地形部分 ////////////////////////// "1": {
"cls": "terrains",
// 0-20 地形 "id": "yellowWall"
'1':{'cls': 'terrains', 'id': 'yellowWall'}, // 黄墙 },
'2':{'cls': 'terrains', 'id': 'whiteWall'}, // 白墙 "2": {
'3':{'cls': 'terrains', 'id': 'blueWall'}, // 蓝墙 "cls": "terrains",
'4':{'cls': 'animates', 'id': 'star', 'noPass': true}, // 星空 "id": "whiteWall"
'5':{'cls': 'animates', 'id': 'lava', 'noPass': true}, // 岩浆 },
'6':{'cls': 'terrains', 'id': 'ice'}, // 冰面 "3": {
'7':{'cls': 'terrains', 'id': 'blueShop-left'}, // 蓝色商店左 "cls": "terrains",
'8':{'cls': 'terrains', 'id': 'blueShop-right'}, // 蓝色商店右 "id": "blueWall"
'9':{'cls': 'terrains', 'id': 'pinkShop-left'}, // 粉色商店左 },
'10':{'cls': 'terrains', 'id': 'pinkShop-right'}, // 粉色商店左 "4": {
'11':{'cls': 'animates', 'id': 'lavaNet', 'noPass': false, 'trigger': 'passNet'}, // 血网 "cls": "animates",
'12':{'cls': 'animates', 'id': 'poisonNet', 'noPass': false, 'trigger': 'passNet'}, // 毒网 "id": "star",
'13':{'cls': 'animates', 'id': 'weakNet', 'noPass': false, 'trigger': 'passNet'}, // 衰网 "noPass": true
'14':{'cls': 'animates', 'id': 'curseNet', 'noPass': false, 'trigger': 'passNet'}, // 咒网 },
'15':{'cls': 'animates', 'id': 'water', 'noPass': true}, // 水 "5": {
// 在这里添加更多地形 "cls": "animates",
// 如果空位不足可以从180以后开始继续放只要不和现有的数字冲突即可 "id": "lava",
"noPass": true
// Autotile },
'20':{'cls': 'autotile', 'id': 'autotile', 'noPass': true}, // autotile "6": {
// 更多的autotile从151到160等只要不和现有的数字冲突即可 "cls": "terrains",
'151':{'cls': 'autotile', 'id': 'autotile1', 'noPass': true}, "id": "ice"
'152':{'cls': 'autotile', 'id': 'autotile2', 'noPass': true}, },
'153':{'cls': 'autotile', 'id': 'autotile3', 'noPass': true}, "7": {
"cls": "terrains",
////////////////////////// 物品部分 ////////////////////////// "id": "blueShop-left"
},
// 21-80 物品 "8": {
'21':{'cls': 'items', 'id': 'yellowKey'}, // 黄钥匙 "cls": "terrains",
'22':{'cls': 'items', 'id': 'blueKey'}, // 蓝钥匙 "id": "blueShop-right"
'23':{'cls': 'items', 'id': 'redKey'}, // 红钥匙 },
'24':{'cls': 'items', 'id': 'greenKey'}, // 绿钥匙 "9": {
'25':{'cls': 'items', 'id': 'steelKey'}, // 铁门钥匙 "cls": "terrains",
'26':{'cls': 'items', 'id': 'bigKey'}, // 大黄门钥匙(钥匙盒) "id": "pinkShop-left"
'27':{'cls': 'items', 'id': 'redJewel'}, // 红宝石 },
'28':{'cls': 'items', 'id': 'blueJewel'}, // 蓝宝石 "10": {
'29':{'cls': 'items', 'id': 'greenJewel'}, // 绿宝石 "cls": "terrains",
'30':{'cls': 'items', 'id': 'yellowJewel'}, // 黄宝石 "id": "pinkShop-right"
'31':{'cls': 'items', 'id': 'redPotion'}, // 红血瓶 },
'32':{'cls': 'items', 'id': 'bluePotion'}, // 蓝血瓶 "11": {
'33':{'cls': 'items', 'id': 'greenPotion'}, // 绿血瓶 "cls": "animates",
'34':{'cls': 'items', 'id': 'yellowPotion'}, // 黄血瓶 "id": "lavaNet",
'35':{'cls': 'items', 'id': 'sword1'}, // 铁剑 "noPass": false,
'36':{'cls': 'items', 'id': 'shield1'}, // 铁盾 "trigger": "passNet"
'37':{'cls': 'items', 'id': 'sword2'}, // 银剑 },
'38':{'cls': 'items', 'id': 'shield2'}, // 银盾 "12": {
'39':{'cls': 'items', 'id': 'sword3'}, // 骑士剑 "cls": "animates",
'40':{'cls': 'items', 'id': 'shield3'}, // 骑士盾 "id": "poisonNet",
'41':{'cls': 'items', 'id': 'sword4'}, // 圣剑 "noPass": false,
'42':{'cls': 'items', 'id': 'shield4'}, // 圣盾 "trigger": "passNet"
'43':{'cls': 'items', 'id': 'sword5'}, // 神圣剑 },
'44':{'cls': 'items', 'id': 'shield5'}, // 神圣盾 "13": {
'45':{'cls': 'items', 'id': 'book'}, // 怪物手册 "cls": "animates",
'46':{'cls': 'items', 'id': 'fly'}, // 楼层传送器 "id": "weakNet",
'47':{'cls': 'items', 'id': 'pickaxe'}, // 破墙镐 "noPass": false,
'48':{'cls': 'items', 'id': 'icePickaxe'}, // 破冰镐 "trigger": "passNet"
'49':{'cls': 'items', 'id': 'bomb'}, // 炸弹 },
'50':{'cls': 'items', 'id': 'centerFly'}, // 中心对称 "14": {
'51':{'cls': 'items', 'id': 'upFly'}, // 上楼器 "cls": "animates",
'52':{'cls': 'items', 'id': 'downFly'}, // 下楼器 "id": "curseNet",
'53':{'cls': 'items', 'id': 'coin'}, // 幸运金币 "noPass": false,
'54':{'cls': 'items', 'id': 'snow'}, // 冰冻徽章 "trigger": "passNet"
'55':{'cls': 'items', 'id': 'cross'}, // 十字架 },
'56':{'cls': 'items', 'id': 'superPotion'}, // 圣水 "15": {
'57':{'cls': 'items', 'id': 'earthquake'}, // 地震卷轴 "cls": "animates",
'58':{'cls': 'items', 'id': 'poisonWine'}, // 解毒药水 "id": "water",
'59':{'cls': 'items', 'id': 'weakWine'}, // 解衰药水 "noPass": true
'60':{'cls': 'items', 'id': 'curseWine'}, // 解咒药水 },
'61':{'cls': 'items', 'id': 'superWine'}, // 万能药水 "20": {
'62':{'cls': 'items', 'id': 'knife'}, // 屠龙匕首 "cls": "autotile",
'63':{'cls': 'items', 'id': 'moneyPocket'}, // 金钱袋 "id": "autotile",
'64':{'cls': 'items', 'id': 'shoes'}, // 绿鞋 "noPass": true
'65':{'cls': 'items', 'id': 'hammer'}, // 圣锤 },
"21": {
"cls": "items",
////////////////////////// 门、楼梯、传送点部分 ////////////////////////// "id": "yellowKey"
},
// 81-100 门 "22": {
'81':{'cls': 'terrains', 'id': 'yellowDoor', 'trigger': 'openDoor'}, // 黄门 "cls": "items",
'82':{'cls': 'terrains', 'id': 'blueDoor', 'trigger': 'openDoor'}, // 蓝门 "id": "blueKey"
'83':{'cls': 'terrains', 'id': 'redDoor', 'trigger': 'openDoor'}, // 红门 },
'84':{'cls': 'terrains', 'id': 'greenDoor', 'trigger': 'openDoor'}, // 绿门 "23": {
'85':{'cls': 'terrains', 'id': 'specialDoor', 'trigger': 'openDoor'}, // 机关门左 "cls": "items",
'86':{'cls': 'terrains', 'id': 'steelDoor', 'trigger': 'openDoor'}, // 铁门 "id": "redKey"
'87':{'cls': 'terrains', 'id': 'upFloor', 'noPass': false}, // 上楼梯 },
'88':{'cls': 'terrains', 'id': 'downFloor', 'noPass': false}, // 下楼梯 "24": {
'89':{'cls': 'animates', 'id': 'portal', 'noPass': false}, // 传送门 "cls": "items",
'90':{'cls': 'animates', 'id': 'starPortal', 'noPass': false}, // 星空传送门 "id": "greenKey"
'91':{'cls': 'animates', 'id': 'upPortal', 'noPass': false}, // 上箭头 },
'92':{'cls': 'animates', 'id': 'leftPortal', 'noPass': false}, // 左箭头 "25": {
'93':{'cls': 'animates', 'id': 'downPortal', 'noPass': false}, // 下箭头 "cls": "items",
'94':{'cls': 'animates', 'id': 'rightPortal', 'noPass': false}, // 右箭头 "id": "steelKey"
},
"26": {
////////////////////////// NPC部分 ////////////////////////// "cls": "items",
"id": "bigKey"
// 121-150 NPC },
'121':{'cls': 'npcs', 'id': 'man'}, "27": {
'122':{'cls': 'npcs', 'id': 'woman'}, "cls": "items",
'123':{'cls': 'npcs', 'id': 'thief'}, "id": "redJewel"
'124':{'cls': 'npcs', 'id': 'fairy'}, },
'125':{'cls': 'npcs', 'id': 'magician'}, "28": {
'126':{'cls': 'npcs', 'id': 'womanMagician'}, "cls": "items",
'127':{'cls': 'npcs', 'id': 'oldMan'}, "id": "blueJewel"
'128':{'cls': 'npcs', 'id': 'child'}, },
'129':{'cls': 'npcs', 'id': 'wood'}, "29": {
'130':{'cls': 'npcs', 'id': 'pinkShop'}, "cls": "items",
'131':{'cls': 'npcs', 'id': 'blueShop'}, "id": "greenJewel"
'132':{'cls': 'npcs', 'id': 'princess'}, },
"30": {
////////////////////////// 其他部分 ////////////////////////// "cls": "items",
"id": "yellowJewel"
// 161-200 其他(单向箭头、灯、箱子等等) },
'161':{'cls': 'terrains', 'id': 'arrowUp', 'noPass': false}, // 单向上箭头 "31": {
'162':{'cls': 'terrains', 'id': 'arrowDown', 'noPass': false}, // 单向下箭头 "cls": "items",
'163':{'cls': 'terrains', 'id': 'arrowLeft', 'noPass': false}, // 单向左箭头 "id": "redPotion"
'164':{'cls': 'terrains', 'id': 'arrowRight', 'noPass': false}, // 单向右箭头 },
'165':{'cls': 'terrains', 'id': 'light', 'trigger': 'changeLight', 'noPass': false}, // 灯 "32": {
'166':{'cls': 'terrains', 'id': 'darkLight', 'noPass': true}, // 暗灯 "cls": "items",
'167':{'cls': 'terrains', 'id': 'ski', 'trigger': 'ski', 'noPass': false}, // 滑冰 "id": "bluePotion"
'168':{'cls': 'terrains', 'id': 'flower', 'noPass': false}, // 花 },
'169':{'cls': 'terrains', 'id': 'box', 'trigger': 'pushBox', 'noPass': true}, // 箱子 "33": {
'170':{'cls': 'terrains', 'id': 'boxed', 'trigger': 'pushBox', 'noPass': true}, // 完成的箱子 "cls": "items",
"id": "greenPotion"
},
////////////////////////// 怪物部分 ////////////////////////// "34": {
"cls": "items",
// 201-300 怪物 "id": "yellowPotion"
'201':{'cls': 'enemys', 'id': 'greenSlime'}, },
'202':{'cls': 'enemys', 'id': 'redSlime'}, "35": {
'203':{'cls': 'enemys', 'id': 'blackSlime'}, "cls": "items",
'204':{'cls': 'enemys', 'id': 'slimelord'}, "id": "sword1"
'205':{'cls': 'enemys', 'id': 'bat'}, },
'206':{'cls': 'enemys', 'id': 'bigBat'}, "36": {
'207':{'cls': 'enemys', 'id': 'redBat'}, "cls": "items",
'208':{'cls': 'enemys', 'id': 'vampire'}, "id": "shield1"
'209':{'cls': 'enemys', 'id': 'skeleton'}, },
'210':{'cls': 'enemys', 'id': 'skeletonSoilder'}, "37": {
'211':{'cls': 'enemys', 'id': 'skeletonCaptain'}, "cls": "items",
'212':{'cls': 'enemys', 'id': 'ghostSkeleton'}, "id": "sword2"
'213':{'cls': 'enemys', 'id': 'zombie'}, },
'214':{'cls': 'enemys', 'id': 'zombieKnight'}, "38": {
'215':{'cls': 'enemys', 'id': 'rock'}, "cls": "items",
'216':{'cls': 'enemys', 'id': 'slimeMan'}, "id": "shield2"
'217':{'cls': 'enemys', 'id': 'bluePriest'}, },
'218':{'cls': 'enemys', 'id': 'redPriest'}, "39": {
'219':{'cls': 'enemys', 'id': 'brownWizard'}, "cls": "items",
'220':{'cls': 'enemys', 'id': 'redWizard'}, "id": "sword3"
'221':{'cls': 'enemys', 'id': 'yellowGuard'}, },
'222':{'cls': 'enemys', 'id': 'blueGuard'}, "40": {
'223':{'cls': 'enemys', 'id': 'redGuard'}, "cls": "items",
'224':{'cls': 'enemys', 'id': 'swordsman'}, "id": "shield3"
'225':{'cls': 'enemys', 'id': 'soldier'}, },
'226':{'cls': 'enemys', 'id': 'yellowKnight'}, "41": {
'227':{'cls': 'enemys', 'id': 'redKnight'}, "cls": "items",
'228':{'cls': 'enemys', 'id': 'darkKnight'}, "id": "sword4"
'229':{'cls': 'enemys', 'id': 'blackKing'}, },
'230':{'cls': 'enemys', 'id': 'yellowKing'}, "42": {
'231':{'cls': 'enemys', 'id': 'greenKing'}, "cls": "items",
'232':{'cls': 'enemys', 'id': 'blueKnight'}, "id": "shield4"
'233':{'cls': 'enemys', 'id': 'goldSlime'}, },
'234':{'cls': 'enemys', 'id': 'poisonSkeleton'}, "43": {
'235':{'cls': 'enemys', 'id': 'poisonBat'}, "cls": "items",
'236':{'cls': 'enemys', 'id': 'steelRock'}, "id": "sword5"
'237':{'cls': 'enemys', 'id': 'skeletonPriest'}, },
'238':{'cls': 'enemys', 'id': 'skeletonKing'}, "44": {
'239':{'cls': 'enemys', 'id': 'skeletonWizard'}, "cls": "items",
'240':{'cls': 'enemys', 'id': 'redSkeletonCaption'}, "id": "shield5"
'241':{'cls': 'enemys', 'id': 'badHero'}, },
'242':{'cls': 'enemys', 'id': 'demon'}, "45": {
'243':{'cls': 'enemys', 'id': 'demonPriest'}, "cls": "items",
'244':{'cls': 'enemys', 'id': 'goldHornSlime'}, "id": "book"
'245':{'cls': 'enemys', 'id': 'redKing'}, },
'246':{'cls': 'enemys', 'id': 'whiteKing'}, "46": {
'247':{'cls': 'enemys', 'id': 'blackMagician'}, "cls": "items",
'248':{'cls': 'enemys', 'id': 'silverSlime'}, "id": "fly"
'249':{'cls': 'enemys', 'id': 'swordEmperor'}, },
'250':{'cls': 'enemys', 'id': 'whiteHornSlime'}, "47": {
'251':{'cls': 'enemys', 'id': 'badPrincess'}, "cls": "items",
'252':{'cls': 'enemys', 'id': 'badFairy'}, "id": "pickaxe"
'253':{'cls': 'enemys', 'id': 'grayPriest'}, },
'254':{'cls': 'enemys', 'id': 'redSwordsman'}, "48": {
'255':{'cls': 'enemys', 'id': 'whiteGhost'}, "cls": "items",
'256':{'cls': 'enemys', 'id': 'poisonZombie'}, "id": "icePickaxe"
'257':{'cls': 'enemys', 'id': 'magicDragon'}, },
'258':{'cls': 'enemys', 'id': 'octopus'}, "49": {
'259':{'cls': 'enemys', 'id': 'darkFairy'}, "cls": "items",
'260':{'cls': 'enemys', 'id': 'greenKnight'}, "id": "bomb"
},
////////////////////////// 待定... ////////////////////////// "50": {
// 目前ID暂时不要超过400 "cls": "items",
"id": "centerFly"
},
"51": {
"cls": "items",
"id": "upFly"
},
"52": {
"cls": "items",
"id": "downFly"
},
"53": {
"cls": "items",
"id": "coin"
},
"54": {
"cls": "items",
"id": "snow"
},
"55": {
"cls": "items",
"id": "cross"
},
"56": {
"cls": "items",
"id": "superPotion"
},
"57": {
"cls": "items",
"id": "earthquake"
},
"58": {
"cls": "items",
"id": "poisonWine"
},
"59": {
"cls": "items",
"id": "weakWine"
},
"60": {
"cls": "items",
"id": "curseWine"
},
"61": {
"cls": "items",
"id": "superWine"
},
"62": {
"cls": "items",
"id": "knife"
},
"63": {
"cls": "items",
"id": "moneyPocket"
},
"64": {
"cls": "items",
"id": "shoes"
},
"65": {
"cls": "items",
"id": "hammer"
},
"81": {
"cls": "terrains",
"id": "yellowDoor",
"trigger": "openDoor"
},
"82": {
"cls": "terrains",
"id": "blueDoor",
"trigger": "openDoor"
},
"83": {
"cls": "terrains",
"id": "redDoor",
"trigger": "openDoor"
},
"84": {
"cls": "terrains",
"id": "greenDoor",
"trigger": "openDoor"
},
"85": {
"cls": "terrains",
"id": "specialDoor",
"trigger": "openDoor"
},
"86": {
"cls": "terrains",
"id": "steelDoor",
"trigger": "openDoor"
},
"87": {
"cls": "terrains",
"id": "upFloor",
"noPass": false
},
"88": {
"cls": "terrains",
"id": "downFloor",
"noPass": false
},
"89": {
"cls": "animates",
"id": "portal",
"noPass": false
},
"90": {
"cls": "animates",
"id": "starPortal",
"noPass": false
},
"91": {
"cls": "animates",
"id": "upPortal",
"noPass": false
},
"92": {
"cls": "animates",
"id": "leftPortal",
"noPass": false
},
"93": {
"cls": "animates",
"id": "downPortal",
"noPass": false
},
"94": {
"cls": "animates",
"id": "rightPortal",
"noPass": false
},
"121": {
"cls": "npcs",
"id": "man"
},
"122": {
"cls": "npcs",
"id": "woman"
},
"123": {
"cls": "npcs",
"id": "thief"
},
"124": {
"cls": "npcs",
"id": "fairy"
},
"125": {
"cls": "npcs",
"id": "magician"
},
"126": {
"cls": "npcs",
"id": "womanMagician"
},
"127": {
"cls": "npcs",
"id": "oldMan"
},
"128": {
"cls": "npcs",
"id": "child"
},
"129": {
"cls": "npcs",
"id": "wood"
},
"130": {
"cls": "npcs",
"id": "pinkShop"
},
"131": {
"cls": "npcs",
"id": "blueShop"
},
"132": {
"cls": "npcs",
"id": "princess"
},
"151": {
"cls": "autotile",
"id": "autotile1",
"noPass": true
},
"152": {
"cls": "autotile",
"id": "autotile2",
"noPass": true
},
"153": {
"cls": "autotile",
"id": "autotile3",
"noPass": true
},
"161": {
"cls": "terrains",
"id": "arrowUp",
"noPass": false
},
"162": {
"cls": "terrains",
"id": "arrowDown",
"noPass": false
},
"163": {
"cls": "terrains",
"id": "arrowLeft",
"noPass": false
},
"164": {
"cls": "terrains",
"id": "arrowRight",
"noPass": false
},
"165": {
"cls": "terrains",
"id": "light",
"trigger": "changeLight",
"noPass": false
},
"166": {
"cls": "terrains",
"id": "darkLight",
"noPass": true
},
"167": {
"cls": "terrains",
"id": "ski",
"trigger": "ski",
"noPass": false
},
"168": {
"cls": "terrains",
"id": "flower",
"noPass": false
},
"169": {
"cls": "terrains",
"id": "box",
"trigger": "pushBox",
"noPass": true
},
"170": {
"cls": "terrains",
"id": "boxed",
"trigger": "pushBox",
"noPass": true
},
"201": {
"cls": "enemys",
"id": "greenSlime"
},
"202": {
"cls": "enemys",
"id": "redSlime"
},
"203": {
"cls": "enemys",
"id": "blackSlime"
},
"204": {
"cls": "enemys",
"id": "slimelord"
},
"205": {
"cls": "enemys",
"id": "bat"
},
"206": {
"cls": "enemys",
"id": "bigBat"
},
"207": {
"cls": "enemys",
"id": "redBat"
},
"208": {
"cls": "enemys",
"id": "vampire"
},
"209": {
"cls": "enemys",
"id": "skeleton"
},
"210": {
"cls": "enemys",
"id": "skeletonSoilder"
},
"211": {
"cls": "enemys",
"id": "skeletonCaptain"
},
"212": {
"cls": "enemys",
"id": "ghostSkeleton"
},
"213": {
"cls": "enemys",
"id": "zombie"
},
"214": {
"cls": "enemys",
"id": "zombieKnight"
},
"215": {
"cls": "enemys",
"id": "rock"
},
"216": {
"cls": "enemys",
"id": "slimeMan"
},
"217": {
"cls": "enemys",
"id": "bluePriest"
},
"218": {
"cls": "enemys",
"id": "redPriest"
},
"219": {
"cls": "enemys",
"id": "brownWizard"
},
"220": {
"cls": "enemys",
"id": "redWizard"
},
"221": {
"cls": "enemys",
"id": "yellowGuard"
},
"222": {
"cls": "enemys",
"id": "blueGuard"
},
"223": {
"cls": "enemys",
"id": "redGuard"
},
"224": {
"cls": "enemys",
"id": "swordsman"
},
"225": {
"cls": "enemys",
"id": "soldier"
},
"226": {
"cls": "enemys",
"id": "yellowKnight"
},
"227": {
"cls": "enemys",
"id": "redKnight"
},
"228": {
"cls": "enemys",
"id": "darkKnight"
},
"229": {
"cls": "enemys",
"id": "blackKing"
},
"230": {
"cls": "enemys",
"id": "yellowKing"
},
"231": {
"cls": "enemys",
"id": "greenKing"
},
"232": {
"cls": "enemys",
"id": "blueKnight"
},
"233": {
"cls": "enemys",
"id": "goldSlime"
},
"234": {
"cls": "enemys",
"id": "poisonSkeleton"
},
"235": {
"cls": "enemys",
"id": "poisonBat"
},
"236": {
"cls": "enemys",
"id": "steelRock"
},
"237": {
"cls": "enemys",
"id": "skeletonPriest"
},
"238": {
"cls": "enemys",
"id": "skeletonKing"
},
"239": {
"cls": "enemys",
"id": "skeletonWizard"
},
"240": {
"cls": "enemys",
"id": "redSkeletonCaption"
},
"241": {
"cls": "enemys",
"id": "badHero"
},
"242": {
"cls": "enemys",
"id": "demon"
},
"243": {
"cls": "enemys",
"id": "demonPriest"
},
"244": {
"cls": "enemys",
"id": "goldHornSlime"
},
"245": {
"cls": "enemys",
"id": "redKing"
},
"246": {
"cls": "enemys",
"id": "whiteKing"
},
"247": {
"cls": "enemys",
"id": "blackMagician"
},
"248": {
"cls": "enemys",
"id": "silverSlime"
},
"249": {
"cls": "enemys",
"id": "swordEmperor"
},
"250": {
"cls": "enemys",
"id": "whiteHornSlime"
},
"251": {
"cls": "enemys",
"id": "badPrincess"
},
"252": {
"cls": "enemys",
"id": "badFairy"
},
"253": {
"cls": "enemys",
"id": "grayPriest"
},
"254": {
"cls": "enemys",
"id": "redSwordsman"
},
"255": {
"cls": "enemys",
"id": "whiteGhost"
},
"256": {
"cls": "enemys",
"id": "poisonZombie"
},
"257": {
"cls": "enemys",
"id": "magicDragon"
},
"258": {
"cls": "enemys",
"id": "octopus"
},
"259": {
"cls": "enemys",
"id": "darkFairy"
},
"260": {
"cls": "enemys",
"id": "greenKnight"
},
"267": {
"cls": "items",
"id": "sgg"
},
"299": {
"cls": "items",
"id": "ttt"
},
"303": {
"cls": "enemys",
"id": "test"
}
} }