Autosave & format project

This commit is contained in:
oc 2019-01-06 23:16:41 +08:00
parent 135ad656ec
commit 198d631caa
12 changed files with 1645 additions and 957 deletions

View File

@ -2294,6 +2294,8 @@ actions.prototype.clickStorageRemove = function (x, y) {
core.removeLocalForage("save"+v); core.removeLocalForage("save"+v);
}); });
core.removeLocalForage("autoSave", function() { core.removeLocalForage("autoSave", function() {
core.saves.autosave.data = null;
core.saves.autosave.updated = false;
core.ui.closePanel(); core.ui.closePanel();
core.drawText("\t[操作成功]当前塔的存档已被清空。"); core.drawText("\t[操作成功]当前塔的存档已被清空。");
core.saves.saveIndex = 1; core.saves.saveIndex = 1;
@ -2306,6 +2308,8 @@ actions.prototype.clickStorageRemove = function (x, y) {
core.removeLocalStorage("save"+v); core.removeLocalStorage("save"+v);
}); });
core.removeLocalStorage("autoSave"); core.removeLocalStorage("autoSave");
core.saves.autosave.data = null;
core.saves.autosave.updated = false;
core.drawText("\t[操作成功]当前塔的存档已被清空。"); core.drawText("\t[操作成功]当前塔的存档已被清空。");
core.saves.saveIndex = 1; core.saves.saveIndex = 1;
core.removeLocalStorage('saveIndex'); core.removeLocalStorage('saveIndex');

View File

@ -55,6 +55,7 @@ control.prototype.setRequestAnimationFrame = function () {
core.animateFrame.moveTime = core.animateFrame.moveTime||timestamp; core.animateFrame.moveTime = core.animateFrame.moveTime||timestamp;
core.animateFrame.lastLegTime = core.animateFrame.lastLegTime||timestamp; core.animateFrame.lastLegTime = core.animateFrame.lastLegTime||timestamp;
core.animateFrame.weather.time = core.animateFrame.weather.time||timestamp; core.animateFrame.weather.time = core.animateFrame.weather.time||timestamp;
core.saves.autosave.time = core.saves.autosave.time||timestamp;
// move time // move time
if (core.isPlaying() && core.isset(core.status) && core.isset(core.status.hero) if (core.isPlaying() && core.isset(core.status) && core.isset(core.status.hero)
@ -102,6 +103,12 @@ control.prototype.setRequestAnimationFrame = function () {
core.animateFrame.boxTime = timestamp; core.animateFrame.boxTime = timestamp;
} }
// AutosaveTime
if (timestamp - core.saves.autosave.time > 5000 && core.isPlaying()) {
core.control.checkAutosave();
core.saves.autosave.time = timestamp;
}
// selectorTime // selectorTime
if (timestamp-core.animateFrame.selectorTime>20 && core.isset(core.dymCanvas.selector)) { if (timestamp-core.animateFrame.selectorTime>20 && core.isset(core.dymCanvas.selector)) {
var opacity = parseFloat(core.dymCanvas.selector.canvas.style.opacity); var opacity = parseFloat(core.dymCanvas.selector.canvas.style.opacity);
@ -2125,12 +2132,24 @@ control.prototype.autosave = function (removeLast) {
if (removeLast) if (removeLast)
x=core.status.route.pop(); x=core.status.route.pop();
core.status.route.push("turn:"+core.getHeroLoc('direction')); core.status.route.push("turn:"+core.getHeroLoc('direction'));
core.setLocalForage("autoSave", core.saveData()); // core.setLocalForage("autoSave", core.saveData());
// ----- Add to autosaveData
core.saves.autosave.data = core.saveData();
core.saves.autosave.updated = true;
core.saves.ids[0] = true;
// ----- Updated every 5s
core.status.route.pop(); core.status.route.pop();
if (removeLast && core.isset(x)) if (removeLast && core.isset(x))
core.status.route.push(x); core.status.route.push(x);
} }
/////// 实际进行自动存档 //////
control.prototype.checkAutosave = function () {
if (core.saves.autosave.data == null || !core.saves.autosave.updated) return;
core.saves.autosave.updated = false;
core.setLocalForage("autoSave", core.saves.autosave.data);
}
////// 实际进行存读档事件 ////// ////// 实际进行存读档事件 //////
control.prototype.doSL = function (id, type) { control.prototype.doSL = function (id, type) {
if (type=='save') { if (type=='save') {
@ -2166,7 +2185,7 @@ control.prototype.doSL = function (id, type) {
return; return;
} }
else if (type=='load') { else if (type=='load') {
core.getLocalForage(id=='autoSave'?id:"save"+id, null, function(data) { var afterGet = function (data) {
if (!core.isset(data)) { if (!core.isset(data)) {
alert("无效的存档"); alert("无效的存档");
return; return;
@ -2192,16 +2211,23 @@ control.prototype.doSL = function (id, type) {
core.setLocalStorage('saveIndex', core.saves.saveIndex); core.setLocalStorage('saveIndex', core.saves.saveIndex);
} }
}); });
}, function(err) { }
console.log(err); if (id == 'autoSave' && core.saves.autosave.data != null) {
alert("无效的存档"); afterGet(core.saves.autosave.data);
}) }
else {
core.getLocalForage(id=='autoSave'?id:"save"+id, null, function(data) {
if (id == 'autoSave') core.saves.autosave.data = core.clone(data);
afterGet(data);
}, function(err) {
console.log(err);
alert("无效的存档");
})
}
return; return;
} }
else if (type == 'replayLoad') { else if (type == 'replayLoad') {
// var data = core.getLocalStorage(id=='autoSave'?id:"save"+id, null); var afterGet = function (data) {
core.getLocalForage(id=='autoSave'?id:"save"+id, null, function(data) {
if (!core.isset(data)) { if (!core.isset(data)) {
core.drawTip("无效的存档"); core.drawTip("无效的存档");
return; return;
@ -2227,10 +2253,19 @@ control.prototype.doSL = function (id, type) {
core.startReplay(route); core.startReplay(route);
core.drawTip("回退到存档节点"); core.drawTip("回退到存档节点");
}); });
}, function(err) { }
console.log(err); if (id == 'autoSave' && core.saves.autosave.data != null) {
core.drawTip("无效的存档"); afterGet(core.saves.autosave.data);
}) }
else {
core.getLocalForage(id=='autoSave'?id:"save"+id, null, function(data) {
if (id == 'autoSave') core.saves.autosave.data = core.clone(data);
afterGet(data);
}, function(err) {
console.log(err);
alert("无效的存档");
})
}
} }
} }

View File

@ -95,7 +95,12 @@ function core() {
this.paint = {}; this.paint = {};
this.saves = { this.saves = {
"saveIndex": null, "saveIndex": null,
"ids": {} "ids": {},
"autosave": {
"data": null,
"time": null,
"updated": false,
}
} }
this.initStatus = { this.initStatus = {
'played': false, 'played': false,

View File

@ -2356,10 +2356,26 @@ ui.prototype.drawSLPanel = function(index, refresh) {
callback(); callback();
return; return;
} }
core.getLocalForage(i==0?"autoSave":"save"+(5*page+i), null, function(data) {
core.status.event.ui[i]=data; if (i==0) {
loadSave(i+1, callback); if (core.saves.autosave.data!=null) {
}, function(err) {console.log(err);}); core.status.event.ui[i] = core.saves.autosave.data;
loadSave(1, callback);
}
else {
core.getLocalForage("autoSave", null, function(data) {
core.saves.autosave.data = data;
core.status.event.ui[i]=data;
loadSave(i+1, callback);
}, function(err) {console.log(err);});
}
}
else {
core.getLocalForage("save"+(5*page+i), null, function(data) {
core.status.event.ui[i]=data;
loadSave(i+1, callback);
}, function(err) {console.log(err);});
}
} }
function drawAll() { function drawAll() {

View File

@ -626,6 +626,12 @@ main.dom.musicBtn.onclick = function () {
} catch (e) {console.log(e);} } catch (e) {console.log(e);}
} }
window.onblur = function () {
if (main.core && main.core.control) {
main.core.control.checkAutosave();
}
}
}//listen end }//listen end
var main = new main(); var main = new main();

View File

@ -1,35 +1,41 @@
main.floors.MT0= main.floors.MT0=
{ {
"floorId": "MT0", "floorId": "MT0",
"title": "主塔 0 层", "title": "主塔 0 层",
"name": "0", "name": "0",
"canFlyTo": true, "canFlyTo": true,
"canUseQuickShop": true, "canUseQuickShop": true,
"cannotViewMap": false, "cannotViewMap": false,
"defaultGround": "ground", "defaultGround": "ground",
"images": [], "images": [],
"item_ratio": 1, "item_ratio": 1,
"map": [ "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], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
], ],
"firstArrive": [], "firstArrive": [],
"parallelDo": "", "parallelDo": "",
"events": {}, "events": {},
"changeFloor": {}, "changeFloor": {},
"afterBattle": {}, "afterBattle": {},
"afterGetItem": {}, "afterGetItem": {},
"afterOpenDoor": {}, "afterOpenDoor": {},
"cannotMove": {}, "cannotMove": {},
"bgmap": [
],
"fgmap": [
],
} }

View File

@ -772,4 +772,10 @@ main.floors.sample1=
"afterGetItem": {}, "afterGetItem": {},
"afterOpenDoor": {}, "afterOpenDoor": {},
"cannotMove": {}, "cannotMove": {},
"bgmap": [
],
"fgmap": [
],
} }

View File

@ -10,41 +10,63 @@ main.floors.sample2=
"images": [], "images": [],
"item_ratio": 1, "item_ratio": 1,
"map": [ "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,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, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0],
[ 0, 0, 0, 0, 1, 1, 0, 0, 1, 0,202,202, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0,202,202, 0], [ 0, 0, 0, 0, 1, 1, 0, 0, 1, 0,202,202, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0,202,202, 0],
[ 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0], [ 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,202, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0,202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,202, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
], ],
"width":26, "width": 26,
"height":26, "height": 26,
"firstArrive": [], "firstArrive": [],
"events": {"3,2":["123"],"12,12":["234"]}, "events": {
"changeFloor": {"6,10": {"floorId": "sample1", "stair": "upFloor"}, "7,12": {"floorId": "sample3", "stair": "downFloor"}}, "3,2": [
"123"
],
"12,12": [
"234"
]
},
"changeFloor": {
"6,10": {
"floorId": "sample1",
"stair": "upFloor"
},
"7,12": {
"floorId": "sample3",
"stair": "downFloor"
}
},
"afterBattle": {}, "afterBattle": {},
"afterGetItem": {}, "afterGetItem": {},
"afterOpenDoor": {}, "afterOpenDoor": {},
"cannotMove": {}, "cannotMove": {},
"upFloor": null, "upFloor": null,
"bgmap": [
],
"fgmap": [
],
} }

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -302,6 +302,10 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
"name": "技能:二倍斩", "name": "技能:二倍斩",
"text": "可以打开或关闭主动技能二倍斩", "text": "可以打开或关闭主动技能二倍斩",
"hideInReplay": true "hideInReplay": true
},
"I73": {
"cls": "items",
"name": "新物品"
} }
}, },
"itemEffect": { "itemEffect": {

View File

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