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

View File

@ -55,6 +55,7 @@ control.prototype.setRequestAnimationFrame = function () {
core.animateFrame.moveTime = core.animateFrame.moveTime||timestamp;
core.animateFrame.lastLegTime = core.animateFrame.lastLegTime||timestamp;
core.animateFrame.weather.time = core.animateFrame.weather.time||timestamp;
core.saves.autosave.time = core.saves.autosave.time||timestamp;
// move time
if (core.isPlaying() && core.isset(core.status) && core.isset(core.status.hero)
@ -102,6 +103,12 @@ control.prototype.setRequestAnimationFrame = function () {
core.animateFrame.boxTime = timestamp;
}
// AutosaveTime
if (timestamp - core.saves.autosave.time > 5000 && core.isPlaying()) {
core.control.checkAutosave();
core.saves.autosave.time = timestamp;
}
// selectorTime
if (timestamp-core.animateFrame.selectorTime>20 && core.isset(core.dymCanvas.selector)) {
var opacity = parseFloat(core.dymCanvas.selector.canvas.style.opacity);
@ -2125,12 +2132,24 @@ control.prototype.autosave = function (removeLast) {
if (removeLast)
x=core.status.route.pop();
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();
if (removeLast && core.isset(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) {
if (type=='save') {
@ -2166,7 +2185,7 @@ control.prototype.doSL = function (id, type) {
return;
}
else if (type=='load') {
core.getLocalForage(id=='autoSave'?id:"save"+id, null, function(data) {
var afterGet = function (data) {
if (!core.isset(data)) {
alert("无效的存档");
return;
@ -2192,16 +2211,23 @@ control.prototype.doSL = function (id, type) {
core.setLocalStorage('saveIndex', core.saves.saveIndex);
}
});
}, function(err) {
console.log(err);
alert("无效的存档");
})
}
if (id == 'autoSave' && core.saves.autosave.data != null) {
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;
}
else if (type == 'replayLoad') {
// var data = core.getLocalStorage(id=='autoSave'?id:"save"+id, null);
core.getLocalForage(id=='autoSave'?id:"save"+id, null, function(data) {
var afterGet = function (data) {
if (!core.isset(data)) {
core.drawTip("无效的存档");
return;
@ -2227,10 +2253,19 @@ control.prototype.doSL = function (id, type) {
core.startReplay(route);
core.drawTip("回退到存档节点");
});
}, function(err) {
console.log(err);
core.drawTip("无效的存档");
})
}
if (id == 'autoSave' && core.saves.autosave.data != null) {
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.saves = {
"saveIndex": null,
"ids": {}
"ids": {},
"autosave": {
"data": null,
"time": null,
"updated": false,
}
}
this.initStatus = {
'played': false,

View File

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

View File

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

View File

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

View File

@ -772,4 +772,10 @@ main.floors.sample1=
"afterGetItem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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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"width":26,
"height":26,
"width": 26,
"height": 26,
"firstArrive": [],
"events": {"3,2":["123"],"12,12":["234"]},
"changeFloor": {"6,10": {"floorId": "sample1", "stair": "upFloor"}, "7,12": {"floorId": "sample3", "stair": "downFloor"}},
"events": {
"3,2": [
"123"
],
"12,12": [
"234"
]
},
"changeFloor": {
"6,10": {
"floorId": "sample1",
"stair": "upFloor"
},
"7,12": {
"floorId": "sample3",
"stair": "downFloor"
}
},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"cannotMove": {},
"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': {
'down': {'loc': 0, 'stop': 0, 'leftFoot': 1, 'rightFoot': 3},
'left': {'loc': 1, 'stop': 0, 'leftFoot': 1, 'rightFoot': 3},
'right': {'loc': 2, 'stop': 0, 'leftFoot': 1, 'rightFoot': 3},
'up': {'loc': 3, 'stop': 0, 'leftFoot': 1, 'rightFoot': 3}
},
'terrains': {
'ground': 0,
'grass': 1,
'grass2': 2,
'yellowWall': 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,
'ground7': 20,
'ground8': 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': {
'star': 0,
'lava': 1,
'blueWater': 2,
'water': 3,
'yellowDoor': 4,
'blueDoor': 5,
'redDoor': 6,
'greenDoor': 7,
'specialDoor': 8,
'steelDoor': 9,
'yellowWall': 10,
'whiteWall': 11,
'blueWall': 12,
'crystalUp': 13,
'crystalBottom': 14,
'starPortal': 15,
'fire': 16,
'portal': 17,
'switch': 18,
'lavaNet': 19,
'poisonNet': 20,
'weakNet': 21,
'curseNet': 22,
'downPortal': 23,
'leftPortal': 24,
'rightPortal': 25,
'upPortal': 26,
},
'npcs': {
'man': 0,
'woman': 1,
'thief': 2,
'fairy': 3,
'magician': 4,
'womanMagician': 5,
'oldMan': 6,
'child': 7,
'wood': 8,
'pinkShop': 9,
'blueShop': 10,
'princess': 11,
'wlt': 12,
'wt': 13,
'wrt': 14,
'wl': 15,
'wc': 16,
'wr': 17,
'wlb': 18,
'wrb': 19,
'dlt': 20,
'dt': 21,
'drt': 22,
'dl': 23,
'dc': 24,
'dr': 25,
'dlb': 26,
'drb': 27,
},
'npc48': {
'npc0': 0,
'npc1': 1,
'npc2': 2,
'npc3': 3,
'npc4': 4,
},
'enemys': {
'greenSlime': 0,
'redSlime': 1,
'blackSlime': 2,
'slimelord': 3,
'bat': 4,
'bigBat': 5,
'redBat': 6,
'vampire': 7,
'skeleton': 8,
'skeletonSoilder': 9,
'skeletonCaptain': 10,
'ghostSkeleton': 11,
'zombie': 12,
'zombieKnight': 13,
'rock': 14,
'slimeMan': 15,
'bluePriest': 16,
'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,
},
'enemy48': {
'angel': 0,
'elemental': 1,
'steelGuard': 2,
'evilBat': 3,
},
'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,
'lifeWand': 33,
"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,
'jumpShoes': 49,
'skill1': 30,
},
'autotile': { // 所有的Autotile列表后面的index简单取0即可
'autotile': 0,
'autotile1': 0,
'autotile2': 0,
'autotile3': 0,
}
"hero": {
"down": {
"loc": 0,
"stop": 0,
"leftFoot": 1,
"rightFoot": 3
},
"left": {
"loc": 1,
"stop": 0,
"leftFoot": 1,
"rightFoot": 3
},
"right": {
"loc": 2,
"stop": 0,
"leftFoot": 1,
"rightFoot": 3
},
"up": {
"loc": 3,
"stop": 0,
"leftFoot": 1,
"rightFoot": 3
},
"height": 48
},
"terrains": {
"ground": 0,
"grass": 1,
"grass2": 2,
"yellowWall": 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,
"ground7": 20,
"ground8": 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": {
"star": 0,
"lava": 1,
"blueWater": 2,
"water": 3,
"yellowDoor": 4,
"blueDoor": 5,
"redDoor": 6,
"greenDoor": 7,
"specialDoor": 8,
"steelDoor": 9,
"yellowWall": 10,
"whiteWall": 11,
"blueWall": 12,
"crystalUp": 13,
"crystalBottom": 14,
"starPortal": 15,
"fire": 16,
"portal": 17,
"switch": 18,
"lavaNet": 19,
"poisonNet": 20,
"weakNet": 21,
"curseNet": 22,
"downPortal": 23,
"leftPortal": 24,
"rightPortal": 25,
"upPortal": 26
},
"npcs": {
"man": 0,
"woman": 1,
"thief": 2,
"fairy": 3,
"magician": 4,
"womanMagician": 5,
"oldMan": 6,
"child": 7,
"wood": 8,
"pinkShop": 9,
"blueShop": 10,
"princess": 11,
"wlt": 12,
"wt": 13,
"wrt": 14,
"wl": 15,
"wc": 16,
"wr": 17,
"wlb": 18,
"wrb": 19,
"dlt": 20,
"dt": 21,
"drt": 22,
"dl": 23,
"dc": 24,
"dr": 25,
"dlb": 26,
"drb": 27
},
"npc48": {
"npc0": 0,
"npc1": 1,
"npc2": 2,
"npc3": 3,
"npc4": 4
},
"enemys": {
"greenSlime": 0,
"redSlime": 1,
"blackSlime": 2,
"slimelord": 3,
"bat": 4,
"bigBat": 5,
"redBat": 6,
"vampire": 7,
"skeleton": 8,
"skeletonSoilder": 9,
"skeletonCaptain": 10,
"ghostSkeleton": 11,
"zombie": 12,
"zombieKnight": 13,
"rock": 14,
"slimeMan": 15,
"bluePriest": 16,
"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
},
"enemy48": {
"angel": 0,
"elemental": 1,
"steelGuard": 2,
"evilBat": 3
},
"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,
"lifeWand": 33,
"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,
"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": "技能:二倍斩",
"text": "可以打开或关闭主动技能二倍斩",
"hideInReplay": true
},
"I73": {
"cls": "items",
"name": "新物品"
}
},
"itemEffect": {

View File

@ -1,233 +1,199 @@
var maps_90f36752_8815_4be8_b32b_d7fad1d0542e =
var maps_90f36752_8815_4be8_b32b_d7fad1d0542e =
{
////////////////////////// 地形部分 //////////////////////////
// 0-20 地形
'1':{'cls': 'terrains', 'id': 'yellowWall', 'canBreak': true}, // 黄墙
'2':{'cls': 'terrains', 'id': 'whiteWall', 'canBreak': true}, // 白墙
'3':{'cls': 'terrains', 'id': 'blueWall', 'canBreak': true}, // 蓝墙
'4':{'cls': 'animates', 'id': 'star', 'noPass': true}, // 星空
'5':{'cls': 'animates', 'id': 'lava', 'noPass': true}, // 岩浆
'6':{'cls': 'terrains', 'id': 'ice'}, // 冰面
'7':{'cls': 'terrains', 'id': 'blueShop-left'}, // 蓝色商店左
'8':{'cls': 'terrains', 'id': 'blueShop-right'}, // 蓝色商店右
'9':{'cls': 'terrains', 'id': 'pinkShop-left'}, // 粉色商店左
'10':{'cls': 'terrains', 'id': 'pinkShop-right'}, // 粉色商店左
'11':{'cls': 'animates', 'id': 'lavaNet', 'noPass': false, 'trigger': 'passNet'}, // 血网
'12':{'cls': 'animates', 'id': 'poisonNet', 'noPass': false, 'trigger': 'passNet'}, // 毒网
'13':{'cls': 'animates', 'id': 'weakNet', 'noPass': false, 'trigger': 'passNet'}, // 衰网
'14':{'cls': 'animates', 'id': 'curseNet', 'noPass': false, 'trigger': 'passNet'}, // 咒网
'15':{'cls': 'animates', 'id': 'blueWater', 'noPass': true}, // 水
'16':{'cls': 'animates', 'id': 'water', 'noPass': true}, // 水
// 在这里添加更多地形
// 如果空位不足可以从180以后开始继续放只要不和现有的数字冲突即可
// Autotile
'20':{'cls': 'autotile', 'id': 'autotile', 'noPass': true}, // autotile
// 更多的autotile从151到160等只要不和现有的数字冲突即可
'151':{'cls': 'autotile', 'id': 'autotile1', 'noPass': true},
'152':{'cls': 'autotile', 'id': 'autotile2', 'noPass': true},
'153':{'cls': 'autotile', 'id': 'autotile3', 'noPass': true},
////////////////////////// 物品部分 //////////////////////////
// 21-80 物品
'21':{'cls': 'items', 'id': 'yellowKey'}, // 黄钥匙
'22':{'cls': 'items', 'id': 'blueKey'}, // 蓝钥匙
'23':{'cls': 'items', 'id': 'redKey'}, // 红钥匙
'24':{'cls': 'items', 'id': 'greenKey'}, // 绿钥匙
'25':{'cls': 'items', 'id': 'steelKey'}, // 铁门钥匙
'26':{'cls': 'items', 'id': 'bigKey'}, // 大黄门钥匙(钥匙盒)
'27':{'cls': 'items', 'id': 'redJewel'}, // 红宝石
'28':{'cls': 'items', 'id': 'blueJewel'}, // 蓝宝石
'29':{'cls': 'items', 'id': 'greenJewel'}, // 绿宝石
'30':{'cls': 'items', 'id': 'yellowJewel'}, // 黄宝石
'31':{'cls': 'items', 'id': 'redPotion'}, // 红血瓶
'32':{'cls': 'items', 'id': 'bluePotion'}, // 蓝血瓶
'33':{'cls': 'items', 'id': 'greenPotion'}, // 绿血瓶
'34':{'cls': 'items', 'id': 'yellowPotion'}, // 黄血瓶
'35':{'cls': 'items', 'id': 'sword1'}, // 铁剑
'36':{'cls': 'items', 'id': 'shield1'}, // 铁盾
'37':{'cls': 'items', 'id': 'sword2'}, // 银剑
'38':{'cls': 'items', 'id': 'shield2'}, // 银盾
'39':{'cls': 'items', 'id': 'sword3'}, // 骑士剑
'40':{'cls': 'items', 'id': 'shield3'}, // 骑士盾
'41':{'cls': 'items', 'id': 'sword4'}, // 圣剑
'42':{'cls': 'items', 'id': 'shield4'}, // 圣盾
'43':{'cls': 'items', 'id': 'sword5'}, // 神圣剑
'44':{'cls': 'items', 'id': 'shield5'}, // 神圣盾
'45':{'cls': 'items', 'id': 'book'}, // 怪物手册
'46':{'cls': 'items', 'id': 'fly'}, // 楼层传送器
'47':{'cls': 'items', 'id': 'pickaxe'}, // 破墙镐
'48':{'cls': 'items', 'id': 'icePickaxe'}, // 破冰镐
'49':{'cls': 'items', 'id': 'bomb'}, // 炸弹
'50':{'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'}, // 圣锤
'68':{'cls': 'items', 'id': 'lifeWand'}, // 生命魔杖
'69':{'cls': 'items', 'id': 'jumpShoes'}, // 生命魔杖
'70':{'cls': 'items', 'id': 'sword0'},
'71':{'cls': 'items', 'id': 'shield0'},
'72':{'cls': 'items', 'id': 'skill1'}, // 技能:二倍斩
////////////////////////// 门、楼梯、传送点部分 //////////////////////////
// 81-100 门
'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}, // 右箭头
// 101~120 其他的animates
'101':{'cls': 'animates', 'id': 'crystalUp'},
'102':{'cls': 'animates', 'id': 'crystalBottom'},
'103':{'cls': 'animates', 'id': 'fire'},
'104':{'cls': 'animates', 'id': 'switch'},
////////////////////////// NPC部分 //////////////////////////
// 121-150 NPC
'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'},
'133': {'cls': 'npc48', 'id': 'npc0'},
'134': {'cls': 'npc48', 'id': 'npc1'},
'135': {'cls': 'npc48', 'id': 'npc2'},
'136': {'cls': 'npc48', 'id': 'npc3'},
'137': {'cls': 'npc48', 'id': 'npc4'},
'181': {'cls': 'npcs', 'id': 'wlt'},
'182': {'cls': 'npcs', 'id': 'wt'},
'183': {'cls': 'npcs', 'id': 'wrt'},
'184': {'cls': 'npcs', 'id': 'wl'},
'185': {'cls': 'npcs', 'id': 'wc'},
'186': {'cls': 'npcs', 'id': 'wr'},
'187': {'cls': 'npcs', 'id': 'wlb'},
'188': {'cls': 'npcs', 'id': 'wrb'},
'189': {'cls': 'npcs', 'id': 'dlt'},
'190': {'cls': 'npcs', 'id': 'dt'},
'191': {'cls': 'npcs', 'id': 'drt'},
'192': {'cls': 'npcs', 'id': 'dl'},
'193': {'cls': 'npcs', 'id': 'dc'},
'194': {'cls': 'npcs', 'id': 'dr'},
'195': {'cls': 'npcs', 'id': 'dlb'},
'196': {'cls': 'npcs', 'id': 'drb'},
////////////////////////// 其他部分 //////////////////////////
// 171-200 其他(单向箭头、灯、箱子等等)
'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"]}, // 单向下箭头
'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"]}, // 单向右箭头
'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-300 怪物
'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'},
'261':{'cls': 'enemy48', 'id': 'angel'},
'262':{'cls': 'enemy48', 'id': 'elemental'},
'263':{'cls': 'enemy48', 'id': 'steelGuard'},
'264':{'cls': 'enemy48', 'id': 'evilBat'},
////////////////////////// 待定... //////////////////////////
"1": {"cls":"terrains","id":"yellowWall","canBreak":true},
"2": {"cls":"terrains","id":"whiteWall","canBreak":true},
"3": {"cls":"terrains","id":"blueWall","canBreak":true},
"4": {"cls":"animates","id":"star","noPass":true},
"5": {"cls":"animates","id":"lava","noPass":true},
"6": {"cls":"terrains","id":"ice"},
"7": {"cls":"terrains","id":"blueShop-left"},
"8": {"cls":"terrains","id":"blueShop-right"},
"9": {"cls":"terrains","id":"pinkShop-left"},
"10": {"cls":"terrains","id":"pinkShop-right"},
"11": {"cls":"animates","id":"lavaNet","noPass":false,"trigger":"passNet"},
"12": {"cls":"animates","id":"poisonNet","noPass":false,"trigger":"passNet"},
"13": {"cls":"animates","id":"weakNet","noPass":false,"trigger":"passNet"},
"14": {"cls":"animates","id":"curseNet","noPass":false,"trigger":"passNet"},
"15": {"cls":"animates","id":"blueWater","noPass":true},
"16": {"cls":"animates","id":"water","noPass":true},
"20": {"cls":"autotile","id":"autotile","noPass":true},
"21": {"cls":"items","id":"yellowKey"},
"22": {"cls":"items","id":"blueKey"},
"23": {"cls":"items","id":"redKey"},
"24": {"cls":"items","id":"greenKey"},
"25": {"cls":"items","id":"steelKey"},
"26": {"cls":"items","id":"bigKey"},
"27": {"cls":"items","id":"redJewel"},
"28": {"cls":"items","id":"blueJewel"},
"29": {"cls":"items","id":"greenJewel"},
"30": {"cls":"items","id":"yellowJewel"},
"31": {"cls":"items","id":"redPotion"},
"32": {"cls":"items","id":"bluePotion"},
"33": {"cls":"items","id":"greenPotion"},
"34": {"cls":"items","id":"yellowPotion"},
"35": {"cls":"items","id":"sword1"},
"36": {"cls":"items","id":"shield1"},
"37": {"cls":"items","id":"sword2"},
"38": {"cls":"items","id":"shield2"},
"39": {"cls":"items","id":"sword3"},
"40": {"cls":"items","id":"shield3"},
"41": {"cls":"items","id":"sword4"},
"42": {"cls":"items","id":"shield4"},
"43": {"cls":"items","id":"sword5"},
"44": {"cls":"items","id":"shield5"},
"45": {"cls":"items","id":"book"},
"46": {"cls":"items","id":"fly"},
"47": {"cls":"items","id":"pickaxe"},
"48": {"cls":"items","id":"icePickaxe"},
"49": {"cls":"items","id":"bomb"},
"50": {"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"},
"68": {"cls":"items","id":"lifeWand"},
"69": {"cls":"items","id":"jumpShoes"},
"70": {"cls":"items","id":"sword0"},
"71": {"cls":"items","id":"shield0"},
"72": {"cls":"items","id":"skill1"},
"73": {"cls":"items","id":"I73"},
"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},
"101": {"cls":"animates","id":"crystalUp"},
"102": {"cls":"animates","id":"crystalBottom"},
"103": {"cls":"animates","id":"fire"},
"104": {"cls":"animates","id":"switch"},
"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"},
"133": {"cls":"npc48","id":"npc0"},
"134": {"cls":"npc48","id":"npc1"},
"135": {"cls":"npc48","id":"npc2"},
"136": {"cls":"npc48","id":"npc3"},
"137": {"cls":"npc48","id":"npc4"},
"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,"cannotOut":["left","right","down"],"cannotIn":["down"]},
"162": {"cls":"terrains","id":"arrowDown","noPass":false,"cannotOut":["left","right","up"],"cannotIn":["up"]},
"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"]},
"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},
"181": {"cls":"npcs","id":"wlt"},
"182": {"cls":"npcs","id":"wt"},
"183": {"cls":"npcs","id":"wrt"},
"184": {"cls":"npcs","id":"wl"},
"185": {"cls":"npcs","id":"wc"},
"186": {"cls":"npcs","id":"wr"},
"187": {"cls":"npcs","id":"wlb"},
"188": {"cls":"npcs","id":"wrb"},
"189": {"cls":"npcs","id":"dlt"},
"190": {"cls":"npcs","id":"dt"},
"191": {"cls":"npcs","id":"drt"},
"192": {"cls":"npcs","id":"dl"},
"193": {"cls":"npcs","id":"dc"},
"194": {"cls":"npcs","id":"dr"},
"195": {"cls":"npcs","id":"dlb"},
"196": {"cls":"npcs","id":"drb"},
"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"},
"261": {"cls":"enemy48","id":"angel"},
"262": {"cls":"enemy48","id":"elemental"},
"263": {"cls":"enemy48","id":"steelGuard"},
"264": {"cls":"enemy48","id":"evilBat"}
}