This commit is contained in:
ckcz123 2019-12-27 14:43:25 +08:00
parent 9d8146ab29
commit 638aa0d814
3 changed files with 5 additions and 4 deletions

View File

@ -159,6 +159,7 @@ editor.prototype.init = function (callback) {
editor.mode = editor_mode;
core.resetGame(core.firstData.hero, null, core.firstData.floorId, core.clone(core.initStatus.maps));
var lastFloorId = core.getLocalStorage('editorLastFloorId', core.status.floorId);
if (core.floors.indexOf(lastFloorId) < 0) lastFloorId = core.status.floorId;
core.changeFloor(lastFloorId, null, core.firstData.hero.loc, null, function () {
afterCoreReset();
}, true);

View File

@ -2,7 +2,7 @@ function main() {
//------------------------ 用户修改内容 ------------------------//
this.version = "2.6.5"; // 游戏版本号如果更改了游戏内容建议修改此version以免造成缓存问题。
this.version = "2.6.6"; // 游戏版本号如果更改了游戏内容建议修改此version以免造成缓存问题。
this.useCompress = false; // 是否使用压缩文件
// 当你即将发布你的塔时请使用“JS代码压缩工具”将所有js代码进行压缩然后将这里的useCompress改为true。
@ -189,8 +189,8 @@ function main() {
this.floors = {}
this.canvas = {};
this.__VERSION__ = "2.6.5";
this.__VERSION_CODE__ = 87;
this.__VERSION__ = "2.6.6";
this.__VERSION_CODE__ = 97;
}
main.prototype.init = function (mode, callback) {

View File

@ -78,7 +78,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"firstData": {
"title": "魔塔样板",
"name": "template",
"version": "Ver 2.6.5",
"version": "Ver 2.6.6",
"floorId": "sample0",
"hero": {
"name": "阳光",