feat: 杀掉样板的工具栏

This commit is contained in:
unanmed 2024-05-04 13:23:03 +08:00
parent 4d5f14e8a5
commit f52f986bfa
41 changed files with 1473 additions and 222 deletions

View File

@ -147,7 +147,7 @@
<!-- 状态栏canvas化 --> <!-- 状态栏canvas化 -->
<canvas id="statusCanvas" style="position: absolute; left: 0; top: 0;"></canvas> <canvas id="statusCanvas" style="position: absolute; left: 0; top: 0;"></canvas>
</div> </div>
<div id="toolBar" class="clearfix"> <!-- <div id="toolBar" class="clearfix">
<img class="tools" id='img-book'> <img class="tools" id='img-book'>
<img class="tools" id='img-fly'> <img class="tools" id='img-fly'>
<img class="tools" id='img-toolbox'> <img class="tools" id='img-toolbox'>
@ -165,7 +165,7 @@
<img class="tools" id='img-btn7' style='display:none'> <img class="tools" id='img-btn7' style='display:none'>
<img class="tools" id='img-btn8' style='display:none'> <img class="tools" id='img-btn8' style='display:none'>
<p class="statusLabel tools" id="hard"></p> <p class="statusLabel tools" id="hard"></p>
</div> </div> -->
<div id="gameDraw"> <div id="gameDraw">
<div id="gif"></div> <div id="gif"></div>
<div id="gif2"></div> <div id="gif2"></div>

View File

@ -87,8 +87,6 @@ control.prototype._init = function () {
// --- 注册系统的resize // --- 注册系统的resize
this.registerResize('gameGroup', this._resize_gameGroup); this.registerResize('gameGroup', this._resize_gameGroup);
this.registerResize('canvas', this._resize_canvas); this.registerResize('canvas', this._resize_canvas);
this.registerResize('toolBar', this._resize_toolBar);
this.registerResize('tools', this._resize_tools);
}; };
// ------ requestAnimationFrame 相关 ------ // // ------ requestAnimationFrame 相关 ------ //
@ -3499,6 +3497,8 @@ control.prototype.hideStatusBar = function (showToolbox) {
////// 改变工具栏为按钮1-8 ////// ////// 改变工具栏为按钮1-8 //////
control.prototype.setToolbarButton = function (useButton) { control.prototype.setToolbarButton = function (useButton) {
// Deprecated. Use CustomToolbar instead.
return;
if (!core.domStyle.showStatusBar) { if (!core.domStyle.showStatusBar) {
// 隐藏状态栏时检查竖屏 // 隐藏状态栏时检查竖屏
if (!core.domStyle.isVertical && !core.flags.extendToolbar) { if (!core.domStyle.isVertical && !core.flags.extendToolbar) {
@ -3692,11 +3692,7 @@ control.prototype._resize_gameGroup = function (obj) {
obj.outerWidth + obj.outerWidth +
obj.BAR_WIDTH * core.domStyle.scale + obj.BAR_WIDTH * core.domStyle.scale +
(obj.extendToolbar ? 0 : obj.BORDER); (obj.extendToolbar ? 0 : obj.BORDER);
totalHeight = totalHeight = obj.outerHeight;
obj.outerHeight +
(obj.extendToolbar
? obj.TOOLBAR_HEIGHT * core.domStyle.scale + obj.BORDER
: 0);
} }
gameGroup.style.width = totalWidth + 'px'; gameGroup.style.width = totalWidth + 'px';
gameGroup.style.height = totalHeight + 'px'; gameGroup.style.height = totalHeight + 'px';
@ -3787,51 +3783,21 @@ control.prototype._resize_canvas = function (obj) {
}; };
control.prototype._resize_toolBar = function (obj) { control.prototype._resize_toolBar = function (obj) {
// toolBar // Deprecated. Use CustomToolbar instead.
var toolBar = core.dom.toolBar;
if (core.domStyle.isVertical) {
toolBar.style.left = 0;
toolBar.style.right = '';
toolBar.style.width = obj.outerWidth - 6 + 'px';
toolBar.style.top =
obj.statusBarHeightInVertical + obj.outerHeight - 3 + 'px';
toolBar.style.height = obj.toolbarHeightInVertical + 'px';
toolBar.style.background = 'none';
} else {
toolBar.style.left = '';
toolBar.style.right = 0;
toolBar.style.width = obj.outerWidth - 6 + 'px';
toolBar.style.top = obj.outerHeight - 3 + 'px';
toolBar.style.height =
obj.TOOLBAR_HEIGHT * core.domStyle.scale + obj.BORDER + 'px';
toolBar.style.background = 'none';
}
toolBar.style.fontSize = 16 * core.domStyle.scale + 'px';
if (
!core.domStyle.showStatusBar &&
!core.domStyle.isVertical &&
!obj.extendToolbar
) {
toolBar.style.display = 'none';
} else {
toolBar.style.display = 'block';
}
}; };
control.prototype._resize_tools = function (obj) { control.prototype._resize_tools = function (obj) {
var toolsHeight = 32 * core.domStyle.scale; // Deprecated. Use CustomToolbar instead.
var toolsMarginLeft; // var toolsHeight = 32 * core.domStyle.scale;
// var toolsMarginLeft;
toolsMarginLeft = (core._HALF_WIDTH_ - 3) * 3 * core.domStyle.scale; // toolsMarginLeft = (core._HALF_WIDTH_ - 3) * 3 * core.domStyle.scale;
for (var i = 0; i < core.dom.tools.length; ++i) { // for (var i = 0; i < core.dom.tools.length; ++i) {
var style = core.dom.tools[i].style; // var style = core.dom.tools[i].style;
style.height = toolsHeight + 'px'; // style.height = toolsHeight + 'px';
style.marginLeft = toolsMarginLeft + 'px'; // style.marginLeft = toolsMarginLeft + 'px';
style.marginTop = 3 * core.domStyle.scale + 'px'; // style.marginTop = 3 * core.domStyle.scale + 'px';
} // }
core.dom.hard.style.lineHeight = toolsHeight + 'px'; // core.dom.hard.style.lineHeight = toolsHeight + 'px';
// core.dom.hard.style.width =
core.dom.hard.style.width = // obj.outerWidth - 9 * toolsMarginLeft - 8.5 * toolsHeight - 12 + 'px';
obj.outerWidth - 9 * toolsMarginLeft - 8.5 * toolsHeight - 12 + 'px';
}; };

Binary file not shown.

View File

@ -82,7 +82,29 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"MT67", "MT67",
"MT68", "MT68",
"MT69", "MT69",
"MT71" "MT71",
"MT72",
"MT73",
"MT74",
"MT75",
"MT76",
"MT77",
"MT78",
"MT79",
"MT80",
"MT81",
"MT82",
"MT83",
"MT84",
"MT85",
"MT86",
"MT87",
"MT88",
"MT89",
"MT90",
"MT91",
"MT92",
"MT93"
], ],
"floorPartitions": [ "floorPartitions": [
[ [
@ -169,8 +191,11 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"beforeBoss.mp3", "beforeBoss.mp3",
"cave.mp3", "cave.mp3",
"escape.mp3", "escape.mp3",
"escape2.mp3",
"grass.mp3", "grass.mp3",
"mount.mp3", "mount.mp3",
"night.mp3",
"palaceCenter.mp3",
"palaceNorth.mp3", "palaceNorth.mp3",
"palaceSouth.mp3", "palaceSouth.mp3",
"plot1.mp3", "plot1.mp3",

View File

@ -282,7 +282,21 @@ main.floors.MT60=
[648,648,648,648,648,648,648, 93,648,648,648,648,648,648,648] [648,648,648,648,648,648,648, 93,648,648,648,648,648,648,648]
], ],
"bgmap": [ "bgmap": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,50400,50401,50402, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,50408,50409,50410, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,50416,50417,50418, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
], ],
"fgmap": [ "fgmap": [

View File

@ -38,6 +38,13 @@ main.floors.MT61=
0, 0,
7 7
] ]
},
"7,0": {
"floorId": "MT72",
"loc": [
7,
14
]
} }
}, },
"beforeBattle": {}, "beforeBattle": {},
@ -65,7 +72,21 @@ main.floors.MT61=
[648,648,648,648,648,648,648, 93,648,648,648,648,648,648,648] [648,648,648,648,648,648,648, 93,648,648,648,648,648,648,648]
], ],
"bgmap": [ "bgmap": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,50448,50449,50450,50451,50452, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,50456,50457,50458,50459,50460, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,50464,50465,50466,50467,50468, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,50472,50473,50474,50475,50476, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,50480,50481,50482,50483,50484, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
], ],
"fgmap": [ "fgmap": [

View File

@ -0,0 +1,79 @@
main.floors.MT72=
{
"floorId": "MT72",
"title": "苍蓝之殿-中",
"name": "72",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {
"7,14": {
"floorId": "MT61",
"loc": [
7,
0
]
}
},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[648,648,648,648,648,648,648, 91,648,648,648,648,648,648,648],
[648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648],
[648, 0,487, 0, 0, 0, 0,103, 0, 0, 0, 0,487, 0,648],
[648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648],
[648, 0, 0, 0,648,648,648, 85,648,648,648, 0, 0, 0,648],
[648, 0, 0, 0,648, 0, 0, 0, 0, 0,648, 0, 0, 0,648],
[648, 0, 0, 0,648, 0, 0, 0, 0, 0,648, 0, 0, 0,648],
[648, 0,103, 0, 85, 0, 0, 87, 0, 0, 85, 0,103, 0,648],
[648, 0, 0, 0,648, 0, 0, 0, 0, 0,648, 0, 0, 0,648],
[648, 0, 0, 0,648, 0, 0, 0, 0, 0,648, 0, 0, 0,648],
[648, 0, 0, 0,648,648,648, 85,648,648,648, 0, 0, 0,648],
[648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648],
[648, 0,487, 0, 0, 0, 0,103, 0, 0, 0, 0,487, 0,648],
[648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648],
[648,648,648,648,648,648,648, 93,648,648,648,648,648,648,648]
],
"bgmap": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,50448,50449,50450,50451,50452, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,50456,50457,50458,50459,50460, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,50464,50465,50466,50467,50468, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,50472,50473,50474,50475,50476, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,50480,50481,50482,50483,50484, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}

View File

@ -0,0 +1,45 @@
main.floors.MT73=
{
"floorId": "MT73",
"title": "苍蓝之殿-中",
"name": "73",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
}

View File

@ -0,0 +1,45 @@
main.floors.MT74=
{
"floorId": "MT74",
"title": "苍蓝之殿-中",
"name": "74",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
}

View File

@ -0,0 +1,45 @@
main.floors.MT75=
{
"floorId": "MT75",
"title": "苍蓝之殿-中",
"name": "75",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
}

View File

@ -0,0 +1,45 @@
main.floors.MT76=
{
"floorId": "MT76",
"title": "苍蓝之殿-左上",
"name": "76",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
}

View File

@ -0,0 +1,45 @@
main.floors.MT77=
{
"floorId": "MT77",
"title": "苍蓝之殿-左上",
"name": "77",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
}

View File

@ -0,0 +1,45 @@
main.floors.MT78=
{
"floorId": "MT78",
"title": "苍蓝之殿-左上",
"name": "78",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
}

View File

@ -0,0 +1,45 @@
main.floors.MT79=
{
"floorId": "MT79",
"title": "苍蓝之殿-左上",
"name": "79",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
}

View File

@ -0,0 +1,45 @@
main.floors.MT80=
{
"floorId": "MT80",
"title": "苍蓝之殿-左上",
"name": "80",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
}

View File

@ -0,0 +1,45 @@
main.floors.MT81=
{
"floorId": "MT81",
"title": "苍蓝之殿-左上",
"name": "81",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
}

View File

@ -0,0 +1,45 @@
main.floors.MT82=
{
"floorId": "MT82",
"title": "苍蓝之殿-左上",
"name": "82",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
}

View File

@ -0,0 +1,45 @@
main.floors.MT83=
{
"floorId": "MT83",
"title": "苍蓝之殿-左上",
"name": "83",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
}

View File

@ -0,0 +1,45 @@
main.floors.MT84=
{
"floorId": "MT84",
"title": "苍蓝之殿-左上",
"name": "84",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
}

View File

@ -0,0 +1,57 @@
main.floors.MT85=
{
"floorId": "MT85",
"title": "苍蓝之殿-右上",
"name": "85",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}

View File

@ -0,0 +1,45 @@
main.floors.MT86=
{
"floorId": "MT86",
"title": "苍蓝之殿-右上",
"name": "86",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
}

View File

@ -0,0 +1,45 @@
main.floors.MT87=
{
"floorId": "MT87",
"title": "苍蓝之殿-右上",
"name": "87",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
}

View File

@ -0,0 +1,45 @@
main.floors.MT88=
{
"floorId": "MT88",
"title": "苍蓝之殿-右上",
"name": "88",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
}

View File

@ -0,0 +1,45 @@
main.floors.MT89=
{
"floorId": "MT89",
"title": "苍蓝之殿-右上",
"name": "89",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
}

View File

@ -0,0 +1,45 @@
main.floors.MT90=
{
"floorId": "MT90",
"title": "苍蓝之殿-右上",
"name": "90",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
}

View File

@ -0,0 +1,45 @@
main.floors.MT91=
{
"floorId": "MT91",
"title": "苍蓝之殿-右上",
"name": "91",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
}

View File

@ -0,0 +1,45 @@
main.floors.MT92=
{
"floorId": "MT92",
"title": "苍蓝之殿-右上",
"name": "92",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
}

View File

@ -0,0 +1,45 @@
main.floors.MT93=
{
"floorId": "MT93",
"title": "苍蓝之殿-右上",
"name": "93",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T650",
"bgm": "palaceNorth.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
}

View File

@ -312,7 +312,7 @@ interface LoadEvent<T extends keyof ResourceType> extends EmitableEvent {
now: number, now: number,
total: number total: number
) => void; ) => void;
load: (resource: ResourceMap[T]) => void | Promise<void>; load: (resource: ResourceMap[T]) => void | Promise<any>;
loadStart: (resource: ResourceMap[T]) => void; loadStart: (resource: ResourceMap[T]) => void;
} }
@ -365,7 +365,7 @@ export class LoadTask<
* Promise将会被resolve * Promise将会被resolve
* @returns Promise * @returns Promise
*/ */
load(): Promise<ResourceType[T]> { async load(): Promise<ResourceType[T]> {
if (this.loadingStarted) { if (this.loadingStarted) {
logger.warn( logger.warn(
2, 2,
@ -394,14 +394,13 @@ export class LoadTask<
); );
}); });
this.emit('loadStart', this.resource); this.emit('loadStart', this.resource);
return load.then(async value => { const value = await load;
// @ts-ignore // @ts-ignore
LoadTask.loadedTaskList.add(this); LoadTask.loadedTaskList.add(this);
this.loaded = totalByte; this.loaded = totalByte;
LoadTask.loadedTask++; LoadTask.loadedTask++;
await Promise.all(this.emit('load', this.resource)); await Promise.all(this.emit('load', this.resource));
return value; return await value;
});
} }
/** /**
@ -619,7 +618,8 @@ export async function loadCompressedResource() {
res.once('load', resource => { res.once('load', resource => {
const res = resource.resource; const res = resource.resource;
if (!res) return; if (!res) return;
list.forEach(async v => { return Promise.all(
list.map(async v => {
const { type, name, usage } = v; const { type, name, usage } = v;
const asyncType = types[type]; const asyncType = types[type];
const value = await res const value = await res
@ -634,20 +634,28 @@ export async function loadCompressedResource() {
const image = new Image(); const image = new Image();
image.src = URL.createObjectURL(img); image.src = URL.createObjectURL(img);
image.addEventListener('load', () => { image.addEventListener('load', () => {
image.setAttribute('_width', image.width.toString()); image.setAttribute(
image.setAttribute('_height', image.height.toString()); '_width',
image.width.toString()
);
image.setAttribute(
'_height',
image.height.toString()
);
}); });
// 图片 // 图片
if (usage === 'image') { if (usage === 'image') {
core.material.images.images[name as ImageIds] = image; core.material.images.images[name as ImageIds] =
image;
} else if (usage === 'tileset') { } else if (usage === 'tileset') {
// 额外素材 // 额外素材
core.material.images.tilesets[name] = image; core.material.images.tilesets[name] = image;
} else if (usage === 'autotile') { } else if (usage === 'autotile') {
// 自动元件 // 自动元件
autotiles[name.slice(0, -4) as AllIdsOf<'autotile'>] = autotiles[
image; name.slice(0, -4) as AllIdsOf<'autotile'>
] = image;
const loading = Mota.require('var', 'loading'); const loading = Mota.require('var', 'loading');
loading.addAutotileLoaded(); loading.addAutotileLoaded();
loading.onAutotileLoaded(autotiles); loading.onAutotileLoaded(autotiles);
@ -660,8 +668,14 @@ export async function loadCompressedResource() {
const image = new Image(); const image = new Image();
image.src = URL.createObjectURL(img); image.src = URL.createObjectURL(img);
image.addEventListener('load', () => { image.addEventListener('load', () => {
image.setAttribute('_width', image.width.toString()); image.setAttribute(
image.setAttribute('_height', image.height.toString()); '_width',
image.width.toString()
);
image.setAttribute(
'_height',
image.height.toString()
);
}); });
// material // material
@ -676,22 +690,28 @@ export async function loadCompressedResource() {
} else if (weathers.some(v => name === v + '.png')) { } else if (weathers.some(v => name === v + '.png')) {
// @ts-ignore // @ts-ignore
core.animateFrame.weather[v] = image; core.animateFrame.weather[v] = image;
} else {
} }
} }
if (usage === 'font') { if (usage === 'font') {
const font = value as ArrayBuffer; const font = value as ArrayBuffer;
document.fonts.add(new FontFace(name.slice(0, -4), font)); document.fonts.add(
new FontFace(name.slice(0, -4), font)
);
} else if (usage === 'sound') { } else if (usage === 'sound') {
const sound = value as ArrayBuffer; const sound = value as ArrayBuffer;
Mota.require('var', 'sound').add(`sounds.${name}`, sound); Mota.require('var', 'sound').add(
`sounds.${name}`,
sound
);
} else if (usage === 'animate') { } else if (usage === 'animate') {
const ani = value as string; const ani = value as string;
core.material.animates[name.slice(0, -8) as AnimationIds] = core.material.animates[
core.loader._loadAnimate(ani); name.slice(0, -8) as AnimationIds
] = core.loader._loadAnimate(ani);
} }
}); })
);
}); });
}); });
} }

View File

@ -73,14 +73,14 @@ function addLightFromBlock(floors: FloorIds[], block: number, config: LightConfi
Mota.require('var', 'hook').once('reset', () => { Mota.require('var', 'hook').once('reset', () => {
Shadow.init(); Shadow.init();
addLightFromBlock( addLightFromBlock(
core.floorIds.slice(61, 70).concat(core.floorIds.slice(72)), core.floorIds.slice(61, 70).concat(core.floorIds.slice(72, 81)).concat(core.floorIds.slice(85, 103)),
103, 103,
{ decay: 50, r: 300, color: [0.9333, 0.6, 0.333, 0.3] }, { decay: 50, r: 300, color: [0.9333, 0.6, 0.333, 0.3] },
{ background: [0, 0, 0, 0.26] }, { background: [0, 0, 0, 0.26] },
{ decay: 50, r: 250, color: [0, 0, 0, 0] } { decay: 50, r: 250, color: [0, 0, 0, 0] }
); );
addLightFromBlock( addLightFromBlock(
['MT50', 'MT60', 'MT61'], ['MT50', 'MT60', 'MT61', 'MT72', 'MT73', 'MT74', 'MT75'],
103, 103,
{ decay: 20, r: 150, color: [0.9333, 0.6, 0.333, 0.4], noShelter: true }, { decay: 20, r: 150, color: [0.9333, 0.6, 0.333, 0.4], noShelter: true },
{ background: [0, 0, 0, 0.4] } { background: [0, 0, 0, 0.4] }

View File

@ -11,7 +11,7 @@ import {
} from '@/plugin/utils'; } from '@/plugin/utils';
import axios, { AxiosResponse, toFormData } from 'axios'; import axios, { AxiosResponse, toFormData } from 'axios';
import { Component, VNode, h, shallowReactive } from 'vue'; import { Component, VNode, h, shallowReactive } from 'vue';
/* @__PURE__ */ import { id, password } from '../../../../user'; // /* @__PURE__ */ import { id, password } from '../../../../user';
import { mainSetting } from '../setting'; import { mainSetting } from '../setting';
type CSSObj = Partial<Record<CanParseCss, string>>; type CSSObj = Partial<Record<CanParseCss, string>>;
@ -135,8 +135,8 @@ export class Danmaku extends EventEmitter<DanmakuEvent> {
this.posting = true; this.posting = true;
const form = toFormData(data); const form = toFormData(data);
/* @__PURE__ */ form.append('userid', id); // /* @__PURE__ */ form.append('userid', id);
/* @__PURE__ */ form.append('password', password); // /* @__PURE__ */ form.append('password', password);
try { try {
const res = await axios.post<PostDanmakuResponse>( const res = await axios.post<PostDanmakuResponse>(
@ -385,8 +385,8 @@ export class Danmaku extends EventEmitter<DanmakuEvent> {
}; };
const form = toFormData(post); const form = toFormData(post);
/* @__PURE__ */ form.append('userid', id); // /* @__PURE__ */ form.append('userid', id);
/* @__PURE__ */ form.append('password', password); // /* @__PURE__ */ form.append('password', password);
const res = await axios.post<PostLikeResponse>(Danmaku.backend, form); const res = await axios.post<PostLikeResponse>(Danmaku.backend, form);
if (res.data.code !== 0) { if (res.data.code !== 0) {
@ -466,8 +466,8 @@ export class Danmaku extends EventEmitter<DanmakuEvent> {
type: 1, type: 1,
towername: 'HumanBreak' towername: 'HumanBreak'
}); });
/* @__PURE__ */ form.append('userid', id); // /* @__PURE__ */ form.append('userid', id);
/* @__PURE__ */ form.append('password', password); // /* @__PURE__ */ form.append('password', password);
const data = await axios.post<DanmakuResponse>(Danmaku.backend, form); const data = await axios.post<DanmakuResponse>(Danmaku.backend, form);
data.data.list.forEach(v => { data.data.list.forEach(v => {
@ -515,7 +515,9 @@ Danmaku.registerSpecContent('i', content => {
}); });
}); });
/* @__PURE__ */ Danmaku.backend = `/danmaku`; if (import.meta.env.DEV) {
Danmaku.backend = `/danmaku`;
}
Mota.require('var', 'hook').once('reset', () => { Mota.require('var', 'hook').once('reset', () => {
Danmaku.fetch(); Danmaku.fetch();

View File

@ -11,6 +11,7 @@ import type {
ToolbarItemMap, ToolbarItemMap,
ToolbarItemType ToolbarItemType
} from '../init/toolbar'; } from '../init/toolbar';
import { isMobile } from '@/plugin/use';
interface CustomToolbarEvent extends EmitableEvent { interface CustomToolbarEvent extends EmitableEvent {
add: (item: ValueOf<ToolbarItemMap>) => void; add: (item: ValueOf<ToolbarItemMap>) => void;
@ -378,3 +379,51 @@ Mota.require('var', 'loading').once('coreInit', () => {
Mota.require('var', 'hook').on('reset', () => { Mota.require('var', 'hook').on('reset', () => {
CustomToolbar.showAll(); CustomToolbar.showAll();
}); });
Mota.require('var', 'hook').once('reset', () => {
const mainStorage = GameStorage.for(GameStorage.fromGame('main'));
mainStorage.read();
if (mainStorage.getValue('played', false)) {
mainStorage.setValue('played', true);
const defaultsTool =
CustomToolbar.list.find(v => v.id === '@defaults') ??
new CustomToolbar('@defaults', true);
defaultsTool.closeAll();
defaultsTool.items = reactive([]);
defaultsTool.add({
id: '@defaults_misc',
type: 'misc',
folded: false,
noDefaultAction: true,
items: [
'book',
'fly',
'save',
'load',
'undo',
'redo',
'danmaku',
'minimap',
'toolbox',
'equipbox',
'shop',
'virtualKey',
'setting'
]
});
// 计算位置
if (isMobile) {
// 手机端显示在最下方
defaultsTool.setPos(25, window.innerHeight - 100);
defaultsTool.setSize(window.innerWidth - 50, 100);
} else {
// 电脑显示在屏幕右方
const x = window.innerWidth / 2 + core.domStyle.scale * 240 + 75;
defaultsTool.setPos(x, window.innerHeight / 2 + 100);
defaultsTool.setSize(window.innerWidth - x - 75, 200);
}
defaultsTool.show();
CustomToolbar.save();
}
});

View File

@ -16,7 +16,7 @@ import {
SelectOption, SelectOption,
Switch Switch
} from 'ant-design-vue'; } from 'ant-design-vue';
import { mainSetting } from '../setting'; import { MotaSettingItem, mainSetting } from '../setting';
import Minimap from '@/components/minimap.vue'; import Minimap from '@/components/minimap.vue';
import { gameKey } from './hotkey'; import { gameKey } from './hotkey';
import { FunctionalComponent, StyleValue, h } from 'vue'; import { FunctionalComponent, StyleValue, h } from 'vue';
@ -224,21 +224,13 @@ function MiscTool(props: CustomToolbarProps<'misc'>) {
justify-content: center; justify-content: center;
font-size: ${18 * scale}px; font-size: ${18 * scale}px;
`; `;
const blockStyle = `
min-width: ${40 * scale}px;
display: flex;
align-items: center;
justify-content: center;
height: ${40 * scale}px;
border: 1px solid #ddd;
`;
const toolStyle = ` const toolStyle = `
display: flex; display: flex;
align-items: center; align-items: center;
min-width: ${40 * scale}px; min-width: ${40 * scale}px;
height: ${40 * scale}px; height: ${40 * scale}px;
border: 1px solid #ddd; border: 1px solid #ddd;
margin-left: ${5 * scale}px; margin: ${5 * scale}px ${5 * scale}px ${5 * scale}px 0;
justify-content: center; justify-content: center;
`; `;
const toolActivedStyle = ` const toolActivedStyle = `
@ -247,7 +239,7 @@ function MiscTool(props: CustomToolbarProps<'misc'>) {
min-width: ${40 * scale}px; min-width: ${40 * scale}px;
height: ${40 * scale}px; height: ${40 * scale}px;
border: 1px solid #ddd; border: 1px solid #ddd;
margin-left: ${5 * scale}px; margin: ${5 * scale}px ${5 * scale}px ${5 * scale}px 0;
justify-content: center; justify-content: center;
color: aqua; color: aqua;
`; `;
@ -255,6 +247,7 @@ function MiscTool(props: CustomToolbarProps<'misc'>) {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 0 ${5 * scale}px; padding: 0 ${5 * scale}px;
flex-wrap: wrap;
`; `;
return ( return (
@ -272,7 +265,7 @@ function MiscTool(props: CustomToolbarProps<'misc'>) {
<span <span
class="button-text" class="button-text"
onClick={triggerFold} onClick={triggerFold}
style={blockStyle} style={toolStyle}
> >
</span> </span>
@ -753,6 +746,9 @@ Mota.require('var', 'hook').once('reset', () => {
CustomToolbar.misc.requestRefresh('minimap'); CustomToolbar.misc.requestRefresh('minimap');
} }
}); });
const scale = mainSetting.getSetting('ui.toolbarScale') as Readonly<
MotaSettingItem<number>
>;
CustomToolbar.misc.register( CustomToolbar.misc.register(
'danmaku', 'danmaku',
@ -760,6 +756,34 @@ Mota.require('var', 'hook').once('reset', () => {
openDanmakuPoster, openDanmakuPoster,
h('span', '发弹幕') h('span', '发弹幕')
); );
CustomToolbar.misc.register(
'book',
'怪物手册',
() => {
core.useItem('book', true);
},
<img
src={core.statusBar.icons.book.src}
style={{
'object-fit': 'contain',
width: `${(scale.value / 100) * 32}px`
}}
></img>
);
CustomToolbar.misc.register(
'fly',
'楼层飞行器',
() => {
core.useItem('fly', true);
},
<img
src={core.statusBar.icons.fly.src}
style={{
'object-fit': 'contain',
width: `${(scale.value / 100) * 32}px`
}}
></img>
);
CustomToolbar.misc.register( CustomToolbar.misc.register(
'toolbox', 'toolbox',
'道具栏', '道具栏',
@ -768,7 +792,24 @@ Mota.require('var', 'hook').once('reset', () => {
}, },
<img <img
src={core.statusBar.icons.toolbox.src} src={core.statusBar.icons.toolbox.src}
style="object-fit: contain" style={{
'object-fit': 'contain',
width: `${(scale.value / 100) * 32}px`
}}
></img>
);
CustomToolbar.misc.register(
'equipbox',
'装备栏',
() => {
mainUi.open('equipbox');
},
<img
src={core.statusBar.icons.equipbox.src}
style={{
'object-fit': 'contain',
width: `${(scale.value / 100) * 32}px`
}}
></img> ></img>
); );
CustomToolbar.misc.register( CustomToolbar.misc.register(
@ -779,7 +820,10 @@ Mota.require('var', 'hook').once('reset', () => {
}, },
<img <img
src={core.statusBar.icons.keyboard.src} src={core.statusBar.icons.keyboard.src}
style="object-fit: contain" style={{
'object-fit': 'contain',
width: `${(scale.value / 100) * 32}px`
}}
></img> ></img>
); );
CustomToolbar.misc.register( CustomToolbar.misc.register(
@ -790,7 +834,10 @@ Mota.require('var', 'hook').once('reset', () => {
}, },
<img <img
src={core.statusBar.icons.shop.src} src={core.statusBar.icons.shop.src}
style="object-fit: contain" style={{
'object-fit': 'contain',
width: `${(scale.value / 100) * 32}px`
}}
></img> ></img>
); );
CustomToolbar.misc.register( CustomToolbar.misc.register(
@ -801,7 +848,10 @@ Mota.require('var', 'hook').once('reset', () => {
}, },
<img <img
src={core.statusBar.icons.save.src} src={core.statusBar.icons.save.src}
style="object-fit: contain" style={{
'object-fit': 'contain',
width: `${(scale.value / 100) * 32}px`
}}
></img> ></img>
); );
CustomToolbar.misc.register( CustomToolbar.misc.register(
@ -812,11 +862,14 @@ Mota.require('var', 'hook').once('reset', () => {
}, },
<img <img
src={core.statusBar.icons.load.src} src={core.statusBar.icons.load.src}
style="object-fit: contain" style={{
'object-fit': 'contain',
width: `${(scale.value / 100) * 32}px`
}}
></img> ></img>
); );
CustomToolbar.misc.register( CustomToolbar.misc.register(
'redo', 'undo',
'回退(自动存档)', '回退(自动存档)',
() => { () => {
core.doSL('autoSave', 'load'); core.doSL('autoSave', 'load');
@ -824,7 +877,7 @@ Mota.require('var', 'hook').once('reset', () => {
h('span', '回退') h('span', '回退')
); );
CustomToolbar.misc.register( CustomToolbar.misc.register(
'load', 'redo',
'恢复(撤销自动存档)', '恢复(撤销自动存档)',
() => { () => {
core.doSL('autoSave', 'reload'); core.doSL('autoSave', 'reload');
@ -839,7 +892,10 @@ Mota.require('var', 'hook').once('reset', () => {
}, },
<img <img
src={core.statusBar.icons.settings.src} src={core.statusBar.icons.settings.src}
style="object-fit: contain" style={{
'object-fit': 'contain',
width: `${(scale.value / 100) * 32}px`
}}
></img> ></img>
); );
CustomToolbar.misc.register( CustomToolbar.misc.register(

View File

@ -499,7 +499,7 @@ loading.once('coreInit', () => {
'screen.heroDetail': !!storage.getValue('screen.heroDetail', false), 'screen.heroDetail': !!storage.getValue('screen.heroDetail', false),
'screen.transition': !!storage.getValue('screen.transition', false), 'screen.transition': !!storage.getValue('screen.transition', false),
'screen.antiAlias': !!storage.getValue('screen.antiAlias', false), 'screen.antiAlias': !!storage.getValue('screen.antiAlias', false),
'screen.fontSize': storage.getValue('screen.fontSize', 16), 'screen.fontSize': storage.getValue('screen.fontSize', isMobile ? 9 : 16),
'screen.smoothView': !!storage.getValue('screen.smoothView', true), 'screen.smoothView': !!storage.getValue('screen.smoothView', true),
'screen.criticalGem': !!storage.getValue('screen.criticalGem', false), 'screen.criticalGem': !!storage.getValue('screen.criticalGem', false),
'screen.fontSizeStatus': storage.getValue('screen.fontSizeStatus', 100), 'screen.fontSizeStatus': storage.getValue('screen.fontSizeStatus', 100),

View File

@ -14,7 +14,7 @@
"是否开启抗锯齿。开启后,画面会变得不那么锐利,观感更加舒适;关闭后,可以更好地展现出像素感,同时部分像素错误也不会出现。" "是否开启抗锯齿。开启后,画面会变得不那么锐利,观感更加舒适;关闭后,可以更好地展现出像素感,同时部分像素错误也不会出现。"
], ],
"fontSize": [ "fontSize": [
"在各种 ui 界面中显示的文字大小,范围为 8 - 28。注意字体过大可能会引起 ui 布局发生错误" "在各种 ui 界面中显示的文字大小,范围为 2 - 48。注意字体过大可能会引起 ui 布局发生错误"
], ],
"criticalGem": ["临界是否显示为在当前地图要吃的宝石数"] "criticalGem": ["临界是否显示为在当前地图要吃的宝石数"]
}, },

View File

@ -996,7 +996,7 @@ export class DamageEnemy<T extends EnemyIds = EnemyIds> {
/** /**
* buff加成core.status.hero取 * buff加成core.status.hero取
*/ */
const realStatus: (keyof HeroStatus)[] = ['atk', 'def']; const realStatus: (keyof HeroStatus)[] = ['atk', 'def', 'hpmax', 'mana'];
/** /**
* *
*/ */
@ -1016,12 +1016,10 @@ export function calDamageWith(
): number | null { ): number | null {
const { const {
hp, hp,
hpmax,
mana,
mdef, mdef,
special: heroSpec = { num: [], last: [] } special: heroSpec = { num: [], last: [] }
} = core.status.hero; } = core.status.hero;
let { atk, def } = hero as HeroStatus; let { atk, def, hpmax, mana } = hero as HeroStatus;
let { hp: monHp, atk: monAtk, def: monDef, special, enemy } = info; let { hp: monHp, atk: monAtk, def: monDef, special, enemy } = info;
let damage = 0; let damage = 0;

View File

@ -40,7 +40,11 @@ export const jumpIgnoreFloor: FloorIds[] = [
'MT59', 'MT59',
'MT60', 'MT60',
'MT61', 'MT61',
'MT71' 'MT71',
'MT72',
'MT73',
'MT74',
'MT75'
]; ];
// 跳跃 // 跳跃
export function jumpSkill() { export function jumpSkill() {

View File

@ -39,8 +39,6 @@ export function init() {
if (!fixedUi.hasName('statusBar')) { if (!fixedUi.hasName('statusBar')) {
fixedUi.open('statusBar'); fixedUi.open('statusBar');
} }
core.dom.tools.hard.style.display = 'block';
core.dom.toolBar.style.display = 'block';
}; };
control.prototype.hideStatusBar = function (showToolbox) { control.prototype.hideStatusBar = function (showToolbox) {
@ -61,9 +59,6 @@ export function init() {
for (var i = 0; i < toolItems.length; ++i) for (var i = 0; i < toolItems.length; ++i)
toolItems[i].style.display = 'none'; toolItems[i].style.display = 'none';
} }
if (!core.domStyle.isVertical && !core.flags.extendToolbar) {
core.dom.toolBar.style.display = 'none';
}
}; };
} }

25
src/source/data.d.ts vendored
View File

@ -81,6 +81,28 @@ type FloorIds =
| 'MT68' | 'MT68'
| 'MT69' | 'MT69'
| 'MT71' | 'MT71'
| 'MT72'
| 'MT73'
| 'MT74'
| 'MT75'
| 'MT76'
| 'MT77'
| 'MT78'
| 'MT79'
| 'MT80'
| 'MT81'
| 'MT82'
| 'MT83'
| 'MT84'
| 'MT85'
| 'MT86'
| 'MT87'
| 'MT88'
| 'MT89'
| 'MT90'
| 'MT91'
| 'MT92'
| 'MT93'
type ImageIds = type ImageIds =
| 'IQ.png' | 'IQ.png'
@ -187,8 +209,11 @@ type BgmIds =
| 'beforeBoss.mp3' | 'beforeBoss.mp3'
| 'cave.mp3' | 'cave.mp3'
| 'escape.mp3' | 'escape.mp3'
| 'escape2.mp3'
| 'grass.mp3' | 'grass.mp3'
| 'mount.mp3' | 'mount.mp3'
| 'night.mp3'
| 'palaceCenter.mp3'
| 'palaceNorth.mp3' | 'palaceNorth.mp3'
| 'palaceSouth.mp3' | 'palaceSouth.mp3'
| 'plot1.mp3' | 'plot1.mp3'

View File

@ -1,5 +1,5 @@
<template> <template>
<div id="danmaku-editor" @click.stop> <div id="danmaku-editor" @click.capture="clickInter">
<div id="danmaku-input"> <div id="danmaku-input">
<span <span
class="danmaku-tool" class="danmaku-tool"
@ -384,9 +384,24 @@ function getAllIcons() {
]; ];
} }
let clickIn = false;
let closed = false;
function clickOuter() { function clickOuter() {
if (!iconAll.value) close(); requestAnimationFrame(() => {
else iconAll.value = false; if (!clickIn) {
if (!iconAll.value) {
if (!closed) {
closed = true;
close();
}
} else iconAll.value = false;
}
clickIn = false;
});
}
function clickInter() {
clickIn = true;
} }
let lockedBefore = false; let lockedBefore = false;
@ -406,7 +421,8 @@ onMounted(() => {
if (!lockedBefore) core.unlockControl(); if (!lockedBefore) core.unlockControl();
}); });
document.addEventListener('click', clickOuter); document.addEventListener('click', clickOuter, { capture: true });
document.addEventListener('touchend', clickOuter, { capture: true });
}); });
onUnmounted(() => { onUnmounted(() => {
@ -418,6 +434,7 @@ onUnmounted(() => {
if (!lockedBefore) core.unlockControl(); if (!lockedBefore) core.unlockControl();
gameKey.enable(); gameKey.enable();
document.removeEventListener('click', clickOuter); document.removeEventListener('click', clickOuter);
document.removeEventListener('touchend', clickOuter);
}); });
</script> </script>

View File

@ -30,6 +30,7 @@
id="divider-vertical" id="divider-vertical"
></a-divider> ></a-divider>
<div id="skill-upgrade-info"> <div id="skill-upgrade-info">
<div id="skill-upgrade-up">
<span id="skill-level" <span id="skill-level"
>当前等级{{ level }} / {{ skill.max }}</span >当前等级{{ level }} / {{ skill.max }}</span
> >
@ -56,6 +57,8 @@
> >
</div></Scroll </div></Scroll
> >
</div>
<div id="skill-upgrade-bottom">
<a-divider dashed class="upgrade-divider"></a-divider> <a-divider dashed class="upgrade-divider"></a-divider>
<div id="skill-chapter"> <div id="skill-chapter">
<span class="button-text" @click="selectChapter(-1)" <span class="button-text" @click="selectChapter(-1)"
@ -71,6 +74,7 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
@ -187,9 +191,8 @@ function exit() {
} }
function resize() { function resize() {
const style = getComputedStyle(canvas); canvas.width = canvas.scrollWidth * devicePixelRatio;
canvas.width = parseFloat(style.width) * devicePixelRatio; canvas.height = canvas.scrollHeight * devicePixelRatio;
canvas.height = parseFloat(style.height) * devicePixelRatio;
} }
function draw() { function draw() {
@ -283,8 +286,13 @@ gameKey
onMounted(async () => { onMounted(async () => {
canvas = document.getElementById('skill-canvas') as HTMLCanvasElement; canvas = document.getElementById('skill-canvas') as HTMLCanvasElement;
ctx = canvas.getContext('2d')!; ctx = canvas.getContext('2d')!;
requestAnimationFrame(() => {
resize(); resize();
requestAnimationFrame(() => {
draw(); draw();
});
});
await sleep(50); await sleep(50);
canvas.addEventListener('click', click); canvas.addEventListener('click', click);
@ -382,6 +390,21 @@ function selectChapter(delta: number) {
align-items: center; align-items: center;
width: 100%; width: 100%;
padding-top: 1vh; padding-top: 1vh;
justify-content: space-between;
#skill-upgrade-up {
width: 100%;
display: flex;
align-items: center;
flex-direction: column;
}
#skill-upgrade-bottom {
width: 100%;
display: flex;
align-items: center;
flex-direction: column;
}
} }
.upgrade-divider { .upgrade-divider {
@ -391,7 +414,7 @@ function selectChapter(delta: number) {
#front-scroll { #front-scroll {
width: 100%; width: 100%;
height: 39vh; max-height: 30vh;
} }
#skill-front { #skill-front {