From 198d631caa0e0b64c76ce4eb3e96f702fcaaacd6 Mon Sep 17 00:00:00 2001 From: oc Date: Sun, 6 Jan 2019 23:16:41 +0800 Subject: [PATCH] Autosave & format project --- libs/actions.js | 4 + libs/control.js | 61 +- libs/core.js | 7 +- libs/ui.js | 24 +- main.js | 6 + project/floors/MT0.js | 70 +- project/floors/sample1.js | 6 + project/floors/sample2.js | 82 ++- project/floors/sample3.js | 1396 ++++++++++++++++++++++++++----------- project/icons.js | 514 +++++++------- project/items.js | 4 + project/maps.js | 428 ++++++------ 12 files changed, 1645 insertions(+), 957 deletions(-) diff --git a/libs/actions.js b/libs/actions.js index bdea0ab0..d3ced18a 100644 --- a/libs/actions.js +++ b/libs/actions.js @@ -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'); diff --git a/libs/control.js b/libs/control.js index 66acc8c0..d55bb475 100644 --- a/libs/control.js +++ b/libs/control.js @@ -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("无效的存档"); + }) + } } } diff --git a/libs/core.js b/libs/core.js index dc97aebf..ac88bc7e 100644 --- a/libs/core.js +++ b/libs/core.js @@ -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, diff --git a/libs/ui.js b/libs/ui.js index 257b069d..9e7c46a6 100644 --- a/libs/ui.js +++ b/libs/ui.js @@ -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() { diff --git a/main.js b/main.js index 97009cce..c6eb7c22 100644 --- a/main.js +++ b/main.js @@ -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(); \ No newline at end of file diff --git a/project/floors/MT0.js b/project/floors/MT0.js index e4f506ab..afcc0832 100644 --- a/project/floors/MT0.js +++ b/project/floors/MT0.js @@ -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": [ + +], } \ No newline at end of file diff --git a/project/floors/sample1.js b/project/floors/sample1.js index ad77484b..33a60ed3 100644 --- a/project/floors/sample1.js +++ b/project/floors/sample1.js @@ -772,4 +772,10 @@ main.floors.sample1= "afterGetItem": {}, "afterOpenDoor": {}, "cannotMove": {}, +"bgmap": [ + +], +"fgmap": [ + +], } \ No newline at end of file diff --git a/project/floors/sample2.js b/project/floors/sample2.js index 1298edef..7ae07530 100644 --- a/project/floors/sample2.js +++ b/project/floors/sample2.js @@ -10,41 +10,63 @@ main.floors.sample2= "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, 1, 121, 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,202, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0,202, 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, 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, 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, 45, 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, 0, 0, 0, 88, 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, 0, 0, 87, 0, 0, 0, 0, 122, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], - [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], - [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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,202, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0,202, 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, 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, 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, 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,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], + [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], + [ 0, 0, 1,121, 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,202, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0,202, 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, 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, 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, 45, 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, 0, 0, 0, 88, 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, 0, 0, 87, 0, 0, 0, 0,122, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], + [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], + [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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,202, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0,202, 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, 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, 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, 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,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": [ + +], } \ No newline at end of file diff --git a/project/floors/sample3.js b/project/floors/sample3.js index 57acd0d2..e115ba5f 100644 --- a/project/floors/sample3.js +++ b/project/floors/sample3.js @@ -1,409 +1,1005 @@ -main.floors.sample3 = +main.floors.sample3= { - "floorId": "sample3", // 这里需要改楼层名,请和文件名及下面的floorId保持完全一致 - // 楼层唯一标识符仅能由字母、数字、下划线组成,且不能由数字开头 - // 推荐用法:第20层就用MT20,第38层就用MT38,地下6层就用MT_6(用下划线代替负号),隐藏3层用MT3h(h表示隐藏),等等 - // 楼层唯一标识符,需要和名字完全一致 - "title": "主塔 40 层", // 楼层中文名 - "name": "40", // 显示在状态栏中的层数 - "canFlyTo": false, // 该楼能否被楼传器飞到(不能的话在该楼也不允许使用楼传器) - "canUseQuickShop": true, // 该层是否允许使用快捷商店 - "defaultGround": "snowGround", // 默认地面的图块ID(terrains中) - "images": [], // // 该层默认显示的所有图片;详细用法请查看文档“自定义素材”中的说明。 - "color": [255,0,0,0.3], // 该层的默认画面色调。本项可不写(代表无色调),如果写需要是一个RGBA数组。 - "weather": ["rain",10], // 该层的默认天气。本项可忽略表示晴天,如果写则第一项为"rain"或"snow"代表雨雪,第二项为1-10之间的数代表强度。 - "bgm": "bgm.mp3", // 到达该层后默认播放的BGM。本项可忽略。 - "item_ratio": 1, // 该层的宝石/血瓶倍率 - "map": [ // 地图数据,需要是13x13,建议使用地图生成器来生成 - [ 5, 5, 5, 5, 5, 5, 87, 5, 5, 5, 5, 5, 5], - [ 5, 4, 4, 4, 4, 1, 0, 1, 4, 4, 4, 4, 5], - [ 5, 4, 4, 4, 4, 1, 85, 1, 4, 4, 4, 4, 5], - [ 5, 4, 4, 4,247, 1,247, 1,247, 4, 4, 4, 5], - [ 5, 4, 4, 4, 1,247,247,247, 1, 4, 4, 4, 5], - [ 5, 4, 4, 4, 1,247, 30,247, 1, 4, 4, 4, 5], - [ 5, 4, 4, 4,247, 1,124, 1,247, 4, 4, 4, 5], - [ 5, 4, 4, 4, 4, 1,123, 1, 4, 4, 4, 4, 5], - [ 5, 4, 4, 4, 4, 1, 0, 1, 4, 4, 4, 4, 5], - [ 5, 4, 4, 4, 4, 1, 0, 1, 4, 4, 4, 4, 5], - [ 5, 4, 4, 4, 4, 4, 0, 4, 4, 4, 4, 4, 5], - [ 5, 4, 4, 4, 4, 4, 85, 4, 4, 4, 4, 4, 5], - [ 5, 5, 5, 5, 5, 5, 88, 5, 5, 5, 5, 5, 5] - ], - "firstArrive": [ // 第一次到该楼层触发的事件 - "\t[实战!]本楼将尝试复刻《宿命的旋律》40F剧情。" - ], - "events": { // 该楼的所有可能事件列表 - - "6,11": {"enable": false}, // 下楼梯口的机关门,初始处于关闭状态 - "6,10": [ // 进入陷阱后关门 - {"type": "playSound", "name": "door.mp3"}, - {"type": "show", "loc": [6,11]}, // 显示机关门 - {"type": "hide"}, // 隐藏该事件 - {"type": "trigger", "loc": [6,7]}, // 直接引发"6,7"处的事件,即下面的杰克 - // 请再次注意"trigger"会立刻结束当前事件,因此"type":"hide"需要在trigger前调用 - ], - "6,7": [ // 杰克事件 - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]杰克,你究竟是什么人?", - {"type": "playSound", "name": "item.mp3"}, - "\t[杰克,thief]……", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]我们……是朋友对吧?\n是朋友就应该相互信任对吧?", - {"type": "playSound", "name": "item.mp3"}, - "\t[杰克,thief]……事到如今也没有什么好隐瞒的了。", - {"type": "playSound", "name": "item.mp3"}, - "\t[杰克,thief]没错,我就是这一切的背后主谋。", - {"type": "move", "steps": [ // 移动到黑暗大法师的位置;使用move会自动调用hide进行隐藏,无需再手动调用 - {"direction": "up", "value": 3} - ], "time": 1000}, - {"type": "show", "loc": [6,4], "time": 1000}, // 显示黑暗大法师 - {"type": "sleep", "time": 500}, // 等待500毫秒 - // 下面是黑暗大法师的事件 - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]我的真名为——黑暗大法师,第四区域的头目。", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]呵呵,不知道为什么,我竟然对事情走到现在这一步毫不感觉意外。", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]以杰克的名义利用了你这么久,真是抱歉啊。", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]真正的杰克现在在哪里?", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]盗贼杰克这个人类从未存在过,他只是我用来接近你的一副皮囊而已。", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]……这样啊,呵呵。", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]为什么你看上去丝毫不生气?", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]多亏了鬼帝,我现在的脾气好得连我自己都害怕。", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]说起来我还得好好感谢你呢,如果没有杰克……你的帮助,我早就死在第一区域了。", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]不论你的目的如何,你的所作所为都是对我有利的。不是吗?", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]能够如此淡定的面对背叛,看来跟五年前相比,你确实成长了很多啊。", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]五年前?……黑暗大法师,在这之前,我们好像素未谋面吧?", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]五年前那场屠城你应该这一生都不会忘记吧。", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]很不巧,那场屠城的主谋,也是我。", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]……", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]这么说,击中我双亲的那道紫色闪电,也就是你释放的吧……", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]你的双亲?这种事情我怎么可能会记得?\n你难道在踩死蚂蚁的时候还会一只只记下他们的样子吗?", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]老 子 要 你 的 命", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]你应该对我心怀感激才对,如果不是那时的我看出了你隐藏的稀有勇者体质,你绝对不可能活到今天。", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]在暗中动手脚让你通过勇者选拔的人也是我,我一直一直在暗中引导你走到今天这一步。", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]是我救赎了一无是处的你。", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]为什么只有我一个人活了下来!!!!", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]为什么偏偏是我!!!!", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]我刚才不是说过了吗?因为我看出了你有稀有勇者体质啊。", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]你刚刚跟鬼帝交过手,应该已经很清楚这稀有勇者体质意味着什么了吧?", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]……就因为我有这种体质,就不得不背负如此残酷的宿命吗?", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]愚蠢!这意味着只要我对你加以引导跟培养,你就能成为这世间实力最强的存在!", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]……所以,你究竟想利用我干什么?", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]我利用你干的事情,你不是已经完成了吗?", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]……你说什么?", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]不知不觉间,你已经在我的指引下跟鬼帝正面交手并且杀掉了他啊。", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]就连我跟鬼帝的对决……也是被你安排好了的?", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]你们两个一个是人类勇者,一个是魔物勇者,迟早会有交手的一天。", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]我只不过是操纵了一系列的连锁事件让这一天提早了数十年到来而已。", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]……你这样做对谁有好处?他可是你们魔物世界的救世主啊。", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]一个惧怕征战,爱好和平的懦夫,也配叫救世主?", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]获得了力量,却只会被动挨打而不主动向人类世界出击,龟缩在第二区域惶惶度日,他根本就不配拥有稀有勇者体质。", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]为了不让这种人霸占着积累多年的庞大灵魂能量无作为,我设计让你杀掉了他。", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]你没有辜负我的期待,成功战胜了那个废物,现在你体内累积的灵魂能量……也就是魔力,已经达到了能跟魔王匹敌的地步。", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]……是吗?现在的我能与魔王匹敌?", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]不止如此,你现在的力量之强就算是统治世界也是绰绰有余!", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]怎么样?要不要加入我的麾下,跟随我去征战人类世界?", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]能与魔王匹敌的话,也就是说。", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]我 现 在 对 付 你 这 种 杂 碎 也 绰 绰 有 余 吧 ?", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]……什么?!", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]等一下!别冲动!你先等我把这利害关系理一理——", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]你给老子闭嘴。", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]老子什么都不想听。", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]老子现在想做的事情只有一件——", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]剁掉你的头,把它放回我双亲的墓前。", - {"type": "update"} // 本事件剧情结束,更新地图显伤 - ], - "6,4": { // 黑暗大法师战斗事件 - "enable": false, // 初始时是禁用状态 - // 打败后将触发afterBattle事件 +"floorId": "sample3", +"title": "主塔 40 层", +"name": "40", +"canFlyTo": false, +"canUseQuickShop": true, +"defaultGround": "snowGround", +"images": [], +"color": [ + 255, + 0, + 0, + 0.3 +], +"weather": [ + "rain", + 10 +], +"bgm": "bgm.mp3", +"item_ratio": 1, +"map": [ + [ 5, 5, 5, 5, 5, 5, 87, 5, 5, 5, 5, 5, 5], + [ 5, 4, 4, 4, 4, 1, 0, 1, 4, 4, 4, 4, 5], + [ 5, 4, 4, 4, 4, 1, 85, 1, 4, 4, 4, 4, 5], + [ 5, 4, 4, 4,247, 1,247, 1,247, 4, 4, 4, 5], + [ 5, 4, 4, 4, 1,247,247,247, 1, 4, 4, 4, 5], + [ 5, 4, 4, 4, 1,247, 30,247, 1, 4, 4, 4, 5], + [ 5, 4, 4, 4,247, 1,124, 1,247, 4, 4, 4, 5], + [ 5, 4, 4, 4, 4, 1,123, 1, 4, 4, 4, 4, 5], + [ 5, 4, 4, 4, 4, 1, 0, 1, 4, 4, 4, 4, 5], + [ 5, 4, 4, 4, 4, 1, 0, 1, 4, 4, 4, 4, 5], + [ 5, 4, 4, 4, 4, 4, 0, 4, 4, 4, 4, 4, 5], + [ 5, 4, 4, 4, 4, 4, 85, 4, 4, 4, 4, 4, 5], + [ 5, 5, 5, 5, 5, 5, 88, 5, 5, 5, 5, 5, 5] +], +"firstArrive": [ + "\t[实战!]本楼将尝试复刻《宿命的旋律》40F剧情。" +], +"events": { + "6,11": { + "enable": false, + "data": [] + }, + "6,10": [ + { + "type": "playSound", + "name": "door.mp3" }, - "5,4": {"enable":false}, // 大法师的分身们,初始时禁用状态 - "7,4": {"enable":false}, // 大法师的分身们,初始时禁用状态 - "5,5": {"enable":false}, // 大法师的分身们,初始时禁用状态 - "7,5": {"enable":false}, // 大法师的分身们,初始时禁用状态 - "6,3": { // 大法师本尊 - "trigger": "action", // 注意:这里要写 trigger:action ,来覆盖掉系统默认的battle事件。 - "enable":false, - "data": [ - "\t[blackMagician]听不进去人话的蠢货,就要用疼痛来管教!", - {"type": "changePos", "direction": "up"}, - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]出来吧!禁忌——紫电凶杀阵!", - {"type": "show", "loc": [[4,3],[4,6],[8,6],[8,3]], "time": 500}, // 依次显示四个角的法师 - {"type": "sleep", "time": 500}, - "\t[blackMagician]感受绝望吧!冥顽不化的蠢货!", - /* - {"type": "hide", "loc": [4,3], "time": 150}, // 由于没有动画效果,暂时使用“闪一下”表示 - {"type": "show", "loc": [4,3], "time": 150}, - {"type": "hide", "loc": [4,6], "time": 150}, // 由于没有动画效果,暂时使用“闪一下”表示 - {"type": "show", "loc": [4,6], "time": 150}, - {"type": "hide", "loc": [8,6], "time": 150}, // 由于没有动画效果,暂时使用“闪一下”表示 - {"type": "show", "loc": [8,6], "time": 150}, - {"type": "hide", "loc": [8,3], "time": 150}, // 由于没有动画效果,暂时使用“闪一下”表示 - {"type": "show", "loc": [8,3], "time": 150}, - */ - {"type": "animate", "name": "yongchang", "loc": [4,3]}, - {"type": "animate", "name": "yongchang", "loc": [4,6]}, - {"type": "animate", "name": "yongchang", "loc": [8,6]}, - {"type": "animate", "name": "yongchang", "loc": [8,3]}, - {"type": "sleep", "time": 200}, - {"type": "playSound", "name": "attack.mp3"}, // 播放攻击音效 - {"type": "animate", "name": "thunder", "loc": "hero"}, - {"type": "sleep", "time": 200}, - "\t[hero]唔……!!(吐血)", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]我的魔力可是充足的很啊!我会一直折磨到你屈服于我为止!", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]人类!好好感受吧!当初你们施加于我的痛苦!如今我要百倍奉还!", - {"type": "show", "loc": [6,6], "time": 1000}, // 显示妖精 - {"type": "sleep", "time": 700}, - {"type": "trigger", "loc": [6,6]} // 立刻触发妖精事件 + { + "type": "show", + "loc": [ + 6, + 11 ] }, - "4,3": { // 四个角的大法师, - "trigger": "action", - "displayDamage": false, - "enable":false + { + "type": "hide" }, - "8,3": { // 四个角的大法师, - "trigger": "action", - "displayDamage": false, - "enable":false - }, - "4,6": { // 四个角的大法师, - "trigger": "action", - "displayDamage": false, - "enable":false - }, - "8,6": { // 四个角的大法师, - "trigger": "action", - "displayDamage": false, - "enable":false - }, - - "6,6": { // 妖精 - "enable":false, // 初始时禁用状态 - "data": [ // 妖精事件 - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]…妖精…小姐……是你吗?", - {"type": "playSound", "name": "item.mp3"}, - "\t[小妖精,fairy]不要绝望,也不要悲伤。", - {"type": "playSound", "name": "item.mp3"}, - "\t[小妖精,fairy]你从来都不是独自一人在前进。", - {"type": "playSound", "name": "item.mp3"}, - "\t[小妖精,fairy]咱一直,一直都在注视着你。", - {"type": "playSound", "name": "item.mp3"}, - "\t[小妖精,fairy]耍小聪明的你、笨笨的你呆呆的你、胆小的你、勇敢的你帅气的你……全部全部都是你。", - {"type": "playSound", "name": "item.mp3"}, - "\t[小妖精,fairy]所以放心吧,无论发生什么,咱都会陪伴在你身边的。", - {"type": "playSound", "name": "item.mp3"}, - "\t[小妖精,fairy]因为你要是离开我的话,立刻就会死掉吧?", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]…妖精…小姐……其实一直以来,我都非常感激你……", - {"type": "playSound", "name": "item.mp3"}, - "\t[小妖精,fairy]笨蛋!都这种时候了就不要作出像是临终遗言的发言了啊!!", - {"type": "playSound", "name": "item.mp3"}, - "\t[小妖精,fairy]喂!那边穿衣品味差到极点的黑暗大法师,别左顾右盼说的就是你!你应该知道咱的身份吧?\n还不速速退下!", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]可恶…多管闲事的妖精族…明明只要再让他承受一点疼痛来瓦解他的意志力,我的计划就成功了!", - {"type": "playSound", "name": "item.mp3"}, - "\t[小妖精,fairy]哼哼哼~抱歉哦,这个笨蛋的意志力可不像你想象的那么薄弱哦!", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]不甘心!我不甘心!妖精公主又如何!\n只要是阻挡我的,不管是谁我都要铲除!", - {"type": "playSound", "name": "item.mp3"}, - "\t[小妖精,fairy]终于露出狐狸尾巴了,其实咱早就看出你有谋反的念头。你的计划就是拉拢这家伙入伙然后推翻魔王对魔塔的统治对吧?", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]呵呵呵……那个昏庸的魔王,掌握着那么庞大的魔物军队却只知道固守魔塔,而不主动侵略人类世界扩张领土!", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]我实在是看不过眼,所以我才决定把这个具备稀有勇者体质的家伙培养成新一任魔王!\n来让这个世界的势力重新洗牌!", - {"type": "playSound", "name": "item.mp3"}, - "\t[小妖精,fairy]你觉得一个满脑子想着回家种田的废柴勇者会成为改变世界的魔王?你晃晃脑袋试试,是不是能听到大海的声音?", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]恼人至极的妖精族!呵呵呵……我干脆一不做二不休,连你也一块收拾了吧!", - {"type": "playSound", "name": "item.mp3"}, - "\t[小妖精,fairy]别小瞧咱!咱好歹也是妖精族里实力数一数二的存在!", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]只会耍嘴皮子的恼人苍蝇!我倒要看看一块焦炭会不会说话!\n——招雷弹!!", - /* - {"type": "hide", "loc": [4,3], "time": 150}, // 由于没有动画效果,暂时使用“闪一下”表示 - {"type": "show", "loc": [4,3], "time": 150}, - {"type": "hide", "loc": [4,6], "time": 150}, // 由于没有动画效果,暂时使用“闪一下”表示 - {"type": "show", "loc": [4,6], "time": 150}, - {"type": "hide", "loc": [8,6], "time": 150}, // 由于没有动画效果,暂时使用“闪一下”表示 - {"type": "show", "loc": [8,6], "time": 150}, - {"type": "hide", "loc": [8,3], "time": 150}, // 由于没有动画效果,暂时使用“闪一下”表示 - {"type": "show", "loc": [8,3], "time": 150}, - */ - {"type": "animate", "name": "yongchang", "loc": [4,3]}, - {"type": "animate", "name": "yongchang", "loc": [4,6]}, - {"type": "animate", "name": "yongchang", "loc": [8,6]}, - {"type": "animate", "name": "yongchang", "loc": [8,3]}, - {"type": "playSound", "name": "attack.mp3"}, // 播放攻击音效 - /* - {"type": "hide", "loc": [6,6], "time": 150}, // 妖精也闪一下表示收到了伤害 - {"type": "show", "loc": [6,6], "time": 150}, // 妖精也闪一下表示收到了伤害 - */ - {"type": "animate", "name": "thunder", "loc": [6,6]}, - {"type": "sleep", "time": 500}, // 等待500毫秒 - "\t[小妖精,fairy]切,这点伤痛跟他刚才经历的身心地狱相比根本就不算什么。", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]哼!翅膀都被烧焦了还要嘴硬?你难不成真以为我不会对你动真格?", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]……你这混蛋!给我离她远点!!", - {"type": "playSound", "name": "item.mp3"}, - "\t[小妖精,fairy]!…你现在受了很严重的致命伤,乱动什么?\n乖。别怕,这里有咱顶着!", - {"type": "playSound", "name": "item.mp3"}, - "\t[小妖精,fairy]对了,咱再问你一遍,你是很珍惜自己性命的对吧?", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]!…等等…妖精小姐,你不会是……?", - {"type": "playSound", "name": "item.mp3"}, - "\t[小妖精,fairy]喂,黑暗大法师,你作为魔塔里最博学多识的蠢货,应该对咱妖精族的特殊能力再清楚不过吧?", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]什么?!难不成你是想!!不可能……\n就为了一个渺小的人类,不可理喻!!", - {"type": "playSound", "name": "item.mp3"}, - "\t[小妖精,fairy]哼哼哼!你害怕的表情可真美味!", - {"type": "playSound", "name": "item.mp3"}, - "\t[小妖精,fairy]不过比起这个,咱更期待你吃到“妖精自灭冲击”之后的死状哦!~", - {"type": "playSound", "name": "item.mp3"}, - "\t[blackMagician]不!!不应该是这样的!我完美的计划竟然会被一只小小的妖精破坏!", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]不要!……千万不要!……为了我这种人……唔!", - {"type": "playSound", "name": "item.mp3"}, - "\t[小妖精,fairy]笨蛋,动都动不了了就不要强撑着站起来了啊。", - {"type": "playSound", "name": "item.mp3"}, - "\t[小妖精,fairy]真是的,都到最后一刻了,你这家伙好歹也让咱省点心吧。", - {"type": "playSound", "name": "item.mp3"}, - "\t[小妖精,fairy]那么,再见了……我的勇者大人。", - {"type": "move", "time": 700, "steps": [ // 向上移动三个,撞上黑暗大大法师;本事件的hide会自动被调用 - {"direction": "up", "value": 3} - ]}, - {"type": "playSound", "name": "attack.mp3"}, // 播放攻击音效 - {"type": "sleep", "time": 200}, - "\t[blackMagician]不可能!!!!!", - {"type": "hide", "loc": [6,3]}, // 法师消失 - {"type": "hide", "loc": [4,3]}, // 四个分身消失 - {"type": "hide", "loc": [4,6]}, - {"type": "hide", "loc": [8,6]}, - {"type": "hide", "loc": [8,3]}, - {"type": "changeFloor", "floorId": "sample3", "loc": [6,6], "direction": "up", "time": 1000}, // 更换勇士地点,合计1秒 - {"type": "show", "loc": [6,5]}, // 显示黄宝石 - {"type": "sleep", "time": 200}, // 等待200毫秒 - {"type": "playSound", "name": "item.mp3"}, - {"type": "sleep", "time": 200}, // 等待200毫秒 - "\t[hero]…妖精…小姐……", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]……妖精小姐!", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]是梦吗?……不对,为什么我在流泪?", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]这颗漂亮的宝石是……?", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]我全都想起来了……妖精小姐为了我……\n牺牲了自己的性命。", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]在这颗宝石上,我能感受到你的温度……\n熟悉而又令人安心,这就是你最后留给我的东西吗……", - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]好温暖……", - {"type": "setValue", "name": "item:yellowJewel", "value": "1"}, // 获得1个黄宝石 - {"type": "hide", "loc": [6,5]}, // 隐藏黄宝石 - {"type": "playSound", "name": "item.mp3"}, - "\t[hero]……", - {"type": "openDoor", "loc": [6,2]}, // 开门 - {"type": "openDoor", "loc": [6,11]} + { + "type": "trigger", + "loc": [ + 6, + 7 ] - }, - "6,5": { // 黄宝石 - "enable": false } + ], + "6,7": [ + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]杰克,你究竟是什么人?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[杰克,thief]……", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]我们……是朋友对吧?\n是朋友就应该相互信任对吧?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[杰克,thief]……事到如今也没有什么好隐瞒的了。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[杰克,thief]没错,我就是这一切的背后主谋。", + { + "type": "move", + "steps": [ + { + "direction": "up", + "value": 3 + } + ], + "time": 1000 + }, + { + "type": "show", + "loc": [ + 6, + 4 + ], + "time": 1000 + }, + { + "type": "sleep", + "time": 500 + }, + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]我的真名为——黑暗大法师,第四区域的头目。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]呵呵,不知道为什么,我竟然对事情走到现在这一步毫不感觉意外。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]以杰克的名义利用了你这么久,真是抱歉啊。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]真正的杰克现在在哪里?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]盗贼杰克这个人类从未存在过,他只是我用来接近你的一副皮囊而已。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]……这样啊,呵呵。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]为什么你看上去丝毫不生气?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]多亏了鬼帝,我现在的脾气好得连我自己都害怕。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]说起来我还得好好感谢你呢,如果没有杰克……你的帮助,我早就死在第一区域了。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]不论你的目的如何,你的所作所为都是对我有利的。不是吗?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]能够如此淡定的面对背叛,看来跟五年前相比,你确实成长了很多啊。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]五年前?……黑暗大法师,在这之前,我们好像素未谋面吧?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]五年前那场屠城你应该这一生都不会忘记吧。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]很不巧,那场屠城的主谋,也是我。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]……", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]这么说,击中我双亲的那道紫色闪电,也就是你释放的吧……", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]你的双亲?这种事情我怎么可能会记得?\n你难道在踩死蚂蚁的时候还会一只只记下他们的样子吗?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]老 子 要 你 的 命", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]你应该对我心怀感激才对,如果不是那时的我看出了你隐藏的稀有勇者体质,你绝对不可能活到今天。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]在暗中动手脚让你通过勇者选拔的人也是我,我一直一直在暗中引导你走到今天这一步。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]是我救赎了一无是处的你。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]为什么只有我一个人活了下来!!!!", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]为什么偏偏是我!!!!", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]我刚才不是说过了吗?因为我看出了你有稀有勇者体质啊。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]你刚刚跟鬼帝交过手,应该已经很清楚这稀有勇者体质意味着什么了吧?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]……就因为我有这种体质,就不得不背负如此残酷的宿命吗?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]愚蠢!这意味着只要我对你加以引导跟培养,你就能成为这世间实力最强的存在!", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]……所以,你究竟想利用我干什么?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]我利用你干的事情,你不是已经完成了吗?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]……你说什么?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]不知不觉间,你已经在我的指引下跟鬼帝正面交手并且杀掉了他啊。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]就连我跟鬼帝的对决……也是被你安排好了的?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]你们两个一个是人类勇者,一个是魔物勇者,迟早会有交手的一天。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]我只不过是操纵了一系列的连锁事件让这一天提早了数十年到来而已。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]……你这样做对谁有好处?他可是你们魔物世界的救世主啊。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]一个惧怕征战,爱好和平的懦夫,也配叫救世主?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]获得了力量,却只会被动挨打而不主动向人类世界出击,龟缩在第二区域惶惶度日,他根本就不配拥有稀有勇者体质。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]为了不让这种人霸占着积累多年的庞大灵魂能量无作为,我设计让你杀掉了他。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]你没有辜负我的期待,成功战胜了那个废物,现在你体内累积的灵魂能量……也就是魔力,已经达到了能跟魔王匹敌的地步。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]……是吗?现在的我能与魔王匹敌?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]不止如此,你现在的力量之强就算是统治世界也是绰绰有余!", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]怎么样?要不要加入我的麾下,跟随我去征战人类世界?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]能与魔王匹敌的话,也就是说。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]我 现 在 对 付 你 这 种 杂 碎 也 绰 绰 有 余 吧 ?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]……什么?!", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]等一下!别冲动!你先等我把这利害关系理一理——", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]你给老子闭嘴。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]老子什么都不想听。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]老子现在想做的事情只有一件——", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]剁掉你的头,把它放回我双亲的墓前。", + { + "type": "update" + } + ], + "6,4": { + "enable": false, + "data": [] + }, + "5,4": { + "enable": false, + "data": [] + }, + "7,4": { + "enable": false, + "data": [] + }, + "5,5": { + "enable": false, + "data": [] + }, + "7,5": { + "enable": false, + "data": [] + }, + "6,3": { + "trigger": "action", + "enable": false, + "data": [ + "\t[blackMagician]听不进去人话的蠢货,就要用疼痛来管教!", + { + "type": "changePos", + "direction": "up" + }, + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]出来吧!禁忌——紫电凶杀阵!", + { + "type": "show", + "loc": [ + [ + 4, + 3 + ], + [ + 4, + 6 + ], + [ + 8, + 6 + ], + [ + 8, + 3 + ] + ], + "time": 500 + }, + { + "type": "sleep", + "time": 500 + }, + "\t[blackMagician]感受绝望吧!冥顽不化的蠢货!", + { + "type": "animate", + "name": "yongchang", + "loc": [ + 4, + 3 + ] + }, + { + "type": "animate", + "name": "yongchang", + "loc": [ + 4, + 6 + ] + }, + { + "type": "animate", + "name": "yongchang", + "loc": [ + 8, + 6 + ] + }, + { + "type": "animate", + "name": "yongchang", + "loc": [ + 8, + 3 + ] + }, + { + "type": "sleep", + "time": 200 + }, + { + "type": "playSound", + "name": "attack.mp3" + }, + { + "type": "animate", + "name": "thunder", + "loc": "hero" + }, + { + "type": "sleep", + "time": 200 + }, + "\t[hero]唔……!!(吐血)", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]我的魔力可是充足的很啊!我会一直折磨到你屈服于我为止!", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]人类!好好感受吧!当初你们施加于我的痛苦!如今我要百倍奉还!", + { + "type": "show", + "loc": [ + 6, + 6 + ], + "time": 1000 + }, + { + "type": "sleep", + "time": 700 + }, + { + "type": "trigger", + "loc": [ + 6, + 6 + ] + } + ] + }, + "4,3": { + "trigger": "action", + "displayDamage": false, + "enable": false, + "data": [] + }, + "8,3": { + "trigger": "action", + "displayDamage": false, + "enable": false, + "data": [] + }, + "4,6": { + "trigger": "action", + "displayDamage": false, + "enable": false, + "data": [] + }, + "8,6": { + "trigger": "action", + "displayDamage": false, + "enable": false, + "data": [] + }, + "6,6": { + "enable": false, + "data": [ + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]…妖精…小姐……是你吗?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[小妖精,fairy]不要绝望,也不要悲伤。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[小妖精,fairy]你从来都不是独自一人在前进。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[小妖精,fairy]咱一直,一直都在注视着你。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[小妖精,fairy]耍小聪明的你、笨笨的你呆呆的你、胆小的你、勇敢的你帅气的你……全部全部都是你。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[小妖精,fairy]所以放心吧,无论发生什么,咱都会陪伴在你身边的。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[小妖精,fairy]因为你要是离开我的话,立刻就会死掉吧?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]…妖精…小姐……其实一直以来,我都非常感激你……", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[小妖精,fairy]笨蛋!都这种时候了就不要作出像是临终遗言的发言了啊!!", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[小妖精,fairy]喂!那边穿衣品味差到极点的黑暗大法师,别左顾右盼说的就是你!你应该知道咱的身份吧?\n还不速速退下!", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]可恶…多管闲事的妖精族…明明只要再让他承受一点疼痛来瓦解他的意志力,我的计划就成功了!", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[小妖精,fairy]哼哼哼~抱歉哦,这个笨蛋的意志力可不像你想象的那么薄弱哦!", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]不甘心!我不甘心!妖精公主又如何!\n只要是阻挡我的,不管是谁我都要铲除!", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[小妖精,fairy]终于露出狐狸尾巴了,其实咱早就看出你有谋反的念头。你的计划就是拉拢这家伙入伙然后推翻魔王对魔塔的统治对吧?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]呵呵呵……那个昏庸的魔王,掌握着那么庞大的魔物军队却只知道固守魔塔,而不主动侵略人类世界扩张领土!", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]我实在是看不过眼,所以我才决定把这个具备稀有勇者体质的家伙培养成新一任魔王!\n来让这个世界的势力重新洗牌!", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[小妖精,fairy]你觉得一个满脑子想着回家种田的废柴勇者会成为改变世界的魔王?你晃晃脑袋试试,是不是能听到大海的声音?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]恼人至极的妖精族!呵呵呵……我干脆一不做二不休,连你也一块收拾了吧!", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[小妖精,fairy]别小瞧咱!咱好歹也是妖精族里实力数一数二的存在!", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]只会耍嘴皮子的恼人苍蝇!我倒要看看一块焦炭会不会说话!\n——招雷弹!!", + { + "type": "animate", + "name": "yongchang", + "loc": [ + 4, + 3 + ] + }, + { + "type": "animate", + "name": "yongchang", + "loc": [ + 4, + 6 + ] + }, + { + "type": "animate", + "name": "yongchang", + "loc": [ + 8, + 6 + ] + }, + { + "type": "animate", + "name": "yongchang", + "loc": [ + 8, + 3 + ] + }, + { + "type": "playSound", + "name": "attack.mp3" + }, + { + "type": "animate", + "name": "thunder", + "loc": [ + 6, + 6 + ] + }, + { + "type": "sleep", + "time": 500 + }, + "\t[小妖精,fairy]切,这点伤痛跟他刚才经历的身心地狱相比根本就不算什么。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]哼!翅膀都被烧焦了还要嘴硬?你难不成真以为我不会对你动真格?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]……你这混蛋!给我离她远点!!", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[小妖精,fairy]!…你现在受了很严重的致命伤,乱动什么?\n乖。别怕,这里有咱顶着!", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[小妖精,fairy]对了,咱再问你一遍,你是很珍惜自己性命的对吧?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]!…等等…妖精小姐,你不会是……?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[小妖精,fairy]喂,黑暗大法师,你作为魔塔里最博学多识的蠢货,应该对咱妖精族的特殊能力再清楚不过吧?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]什么?!难不成你是想!!不可能……\n就为了一个渺小的人类,不可理喻!!", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[小妖精,fairy]哼哼哼!你害怕的表情可真美味!", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[小妖精,fairy]不过比起这个,咱更期待你吃到“妖精自灭冲击”之后的死状哦!~", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[blackMagician]不!!不应该是这样的!我完美的计划竟然会被一只小小的妖精破坏!", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]不要!……千万不要!……为了我这种人……唔!", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[小妖精,fairy]笨蛋,动都动不了了就不要强撑着站起来了啊。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[小妖精,fairy]真是的,都到最后一刻了,你这家伙好歹也让咱省点心吧。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[小妖精,fairy]那么,再见了……我的勇者大人。", + { + "type": "move", + "time": 700, + "steps": [ + { + "direction": "up", + "value": 3 + } + ] + }, + { + "type": "playSound", + "name": "attack.mp3" + }, + { + "type": "sleep", + "time": 200 + }, + "\t[blackMagician]不可能!!!!!", + { + "type": "hide", + "loc": [ + 6, + 3 + ] + }, + { + "type": "hide", + "loc": [ + 4, + 3 + ] + }, + { + "type": "hide", + "loc": [ + 4, + 6 + ] + }, + { + "type": "hide", + "loc": [ + 8, + 6 + ] + }, + { + "type": "hide", + "loc": [ + 8, + 3 + ] + }, + { + "type": "changeFloor", + "floorId": "sample3", + "loc": [ + 6, + 6 + ], + "direction": "up", + "time": 1000 + }, + { + "type": "show", + "loc": [ + 6, + 5 + ] + }, + { + "type": "sleep", + "time": 200 + }, + { + "type": "playSound", + "name": "item.mp3" + }, + { + "type": "sleep", + "time": 200 + }, + "\t[hero]…妖精…小姐……", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]……妖精小姐!", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]是梦吗?……不对,为什么我在流泪?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]这颗漂亮的宝石是……?", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]我全都想起来了……妖精小姐为了我……\n牺牲了自己的性命。", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]在这颗宝石上,我能感受到你的温度……\n熟悉而又令人安心,这就是你最后留给我的东西吗……", + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]好温暖……", + { + "type": "setValue", + "name": "item:yellowJewel", + "value": "1" + }, + { + "type": "hide", + "loc": [ + 6, + 5 + ] + }, + { + "type": "playSound", + "name": "item.mp3" + }, + "\t[hero]……", + { + "type": "openDoor", + "loc": [ + 6, + 2 + ] + }, + { + "type": "openDoor", + "loc": [ + 6, + 11 + ] + } + ] + }, + "6,5": { + "enable": false, + "data": [] + } +}, +"changeFloor": { + "6,0": { + "floorId": "sample3", + "stair": "upFloor" + }, + "6,12": { + "floorId": "sample2", + "stair": "upFloor" + } +}, +"afterBattle": { + "6,4": [ + "\t[blackMagician]天真!你以为这样就能战胜我吗?", + { + "type": "show", + "loc": [ + 7, + 5 + ], + "time": 500 + }, + { + "type": "update" + } + ], + "7,5": [ + "\t[blackMagician]你打败的不过是我众多分身中的其中一个而已。", + { + "type": "show", + "loc": [ + 5, + 4 + ], + "time": 500 + }, + { + "type": "update" + } + ], + "5,4": [ + "\t[blackMagician]你的身体已经伤痕累累了,可我还留有着九成多的魔力。", + { + "type": "show", + "loc": [ + 5, + 5 + ], + "time": 500 + }, + { + "type": "update" + } + ], + "5,5": [ + "\t[blackMagician]顽固的家伙!放弃抵抗吧!", + { + "type": "show", + "loc": [ + 7, + 4 + ], + "time": 500 + }, + { + "type": "update" + } + ], + "7,4": [ + "\t[blackMagician]哈哈哈哈!我的灵魂远比你想象的强大!\n我即是永恒!", + { + "type": "show", + "loc": [ + 6, + 3 + ], + "time": 500 + }, + { + "type": "trigger", + "loc": [ + 6, + 3 + ] + } + ] +}, +"afterGetItem": {}, +"afterOpenDoor": {}, +"cannotMove": {}, +"bgmap": [ - }, - "changeFloor": { // 楼层转换事件;该事件不能和上面的events有冲突(同位置点),否则会被覆盖 - "6,0": {"floorId": "sample3", "stair": "upFloor"}, - "6,12": {"floorId": "sample2", "stair": "upFloor"} - }, - "afterBattle": { // 战斗后可能触发的事件列表 - "6,4": [ // 和黑暗大法师战斗结束 - "\t[blackMagician]天真!你以为这样就能战胜我吗?", - {"type": "show", "loc": [7,5], "time": 500}, - {"type": "update"}, // 更新地图显伤 - ], - "7,5": [ // 和分身1的战斗 - "\t[blackMagician]你打败的不过是我众多分身中的其中一个而已。", - {"type": "show", "loc": [5,4], "time": 500}, - {"type": "update"}, // 更新地图显伤 - ], - "5,4": [ // 和分身2的战斗 - "\t[blackMagician]你的身体已经伤痕累累了,可我还留有着九成多的魔力。", - {"type": "show", "loc": [5,5], "time": 500}, - {"type": "update"}, // 更新地图显伤 - ], - "5,5": [ // 和分身3的战斗 - "\t[blackMagician]顽固的家伙!放弃抵抗吧!", - {"type": "show", "loc": [7,4], "time": 500}, - {"type": "update"}, // 更新地图显伤 - ], - "7,4": [ // 和分身4的战斗 - "\t[blackMagician]哈哈哈哈!我的灵魂远比你想象的强大!\n我即是永恒!", - {"type": "show", "loc": [6,3], "time": 500}, - {"type": "trigger", "loc": [6,3]} // 显示大法师本尊 - ], - }, - "afterGetItem": { // 获得道具后可能触发的事件列表 +], +"fgmap": [ - }, - "afterOpenDoor": { // 开完门后可能触发的事件列表 - - }, - "cannotMove": { // 每个图块不可通行的方向 - // 可以在这里定义每个点不能前往哪个方向,例如悬崖边不能跳下去 - // "x,y": ["up", "left"], // (x,y)点不能往上和左走 - - }, -} +], +} \ No newline at end of file diff --git a/project/icons.js b/project/icons.js index 9f074785..71bce353 100644 --- a/project/icons.js +++ b/project/icons.js @@ -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 + } } \ No newline at end of file diff --git a/project/items.js b/project/items.js index 2074a79d..ab64cc89 100644 --- a/project/items.js +++ b/project/items.js @@ -302,6 +302,10 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = "name": "技能:二倍斩", "text": "可以打开或关闭主动技能二倍斩", "hideInReplay": true + }, + "I73": { + "cls": "items", + "name": "新物品" } }, "itemEffect": { diff --git a/project/maps.js b/project/maps.js index 8056a76c..78a610d0 100644 --- a/project/maps.js +++ b/project/maps.js @@ -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"} } \ No newline at end of file