feat: 苍蓝之殿上半部分完成 & fix: 缩略图显伤 & fix: 字体调整

This commit is contained in:
AncTe committed 2024-09-29 15:43:53 +08:00
1 parent d11699e06e
commit c142cfca88
20 files changed
+484 -89

No files matched your search

+41 -2
View File
@@ -1457,7 +1457,7 @@ control.prototype._updateDamage_extraDamage = function (floorId, onMap) {
////// 重绘地图显伤 //////
control.prototype.drawDamage = function (ctx, floorId = core.status.floorId) {
return;
// return;
if (core.status.gameOver || !core.status.damage || main.mode != 'play')
return;
var onMap = false;
@@ -1482,7 +1482,46 @@ control.prototype.drawDamage = function (ctx, floorId = core.status.floorId) {
};
control.prototype._drawDamage_draw = function (ctx, onMap) {
// Deprecated. See src/plugin/game/fx/checkblock.js
if (!core.hasItem('book')) return;
core.setFont(ctx, '300 9px Verdana');
core.setTextAlign(ctx, 'left');
core.status.damage.data.forEach(function (one) {
var px = one.px,
py = one.py;
if (onMap && core.bigmap.v2) {
px -= core.bigmap.posX * 32;
py -= core.bigmap.posY * 32;
if (
px < -32 * 2 ||
px > core._PX_ + 32 ||
py < -32 ||
py > core._PY_ + 32
)
return;
}
core.fillBoldText(ctx, one.text, px, py, one.color);
});
core.setTextAlign(ctx, 'center');
core.status.damage.extraData.forEach(function (one) {
var px = one.px,
py = one.py;
if (onMap && core.bigmap.v2) {
px -= core.bigmap.posX * 32;
py -= core.bigmap.posY * 32;
if (
px < -32 ||
px > core._PX_ + 32 ||
py < -32 ||
py > core._PY_ + 32
)
return;
}
var alpha = core.setAlpha(ctx, one.alpha);
core.fillBoldText(ctx, one.text, px, py, one.color);
core.setAlpha(ctx, alpha);
});
};
// ------ 录像相关 ------ //
+2 -2
View File
@@ -1506,7 +1506,7 @@ maps.prototype.redrawMap = function () {
// core.clearMap(one);
// });
// this._drawMap_drawAll(null, { redraw: true });
core.drawDamage();
// core.drawDamage();
};
maps.prototype._drawMap_drawAll = function (floorId, config) {
@@ -2609,7 +2609,7 @@ maps.prototype._drawThumbnail_realDrawTempCanvas = function (
options.ctx.imageSmoothingEnabled = true;
// 缩略图:显伤
if (options.damage && core.hasItem('book')) {
core.control.updateDamage(floorId, options.ctx);
core.control.updateDamage(floorId, options.ctx, true);
}
};
+1 -1
View File
@@ -203,5 +203,5 @@ var enemys_fcae963b_31c9_42b4_b48c_bb48d09f3f80 =
"E690": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E691": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E692": {"name":"苍蓝之灵-圣","hp":150000,"atk":15000,"def":5000,"money":20,"exp":5000,"point":0,"special":[4,28],"paleShield":25},
"E693": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}
"E693": {"name":"苍蓝之灵-战","hp":150000,"atk":15000,"def":4000,"money":20,"exp":5000,"point":0,"special":[32],"assimilateRange":6}
}
+50
View File
@@ -53,6 +53,12 @@ main.floors.MT59=
"operator": "+=",
"value": "1"
},
{
"type": "setValue",
"name": "flag:door_palace",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:door_palaceSouth===2)",
@@ -96,6 +102,50 @@ main.floors.MT59=
},
"入口处的机关门已开启"
]
},
{
"type": "if",
"condition": "(flag:door_palace===4)",
"true": [
{
"type": "openDoor",
"loc": [
7,
4
],
"floorId": "MT72"
},
{
"type": "openDoor",
"loc": [
4,
7
],
"floorId": "MT72"
},
{
"type": "openDoor",
"loc": [
7,
10
],
"floorId": "MT72"
},
{
"type": "openDoor",
"loc": [
10,
7
],
"floorId": "MT72"
},
{
"type": "setValue",
"name": "flag:door_palace",
"value": "null"
},
"苍蓝之殿中心处的机关门已经开启,进入后会到达本章最后一个小区域"
]
}
]
},
+52 -2
View File
@@ -33,14 +33,14 @@ main.floors.MT71=
"type": "openDoor",
"loc": [
10,
1
13
]
},
{
"type": "openDoor",
"loc": [
10,
13
1
]
},
{
@@ -49,6 +49,12 @@ main.floors.MT71=
"operator": "+=",
"value": "1"
},
{
"type": "setValue",
"name": "flag:door_palace",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:door_palaceSouth===2)",
@@ -92,6 +98,50 @@ main.floors.MT71=
},
"入口处的机关门已开启"
]
},
{
"type": "if",
"condition": "(flag:door_palace===4)",
"true": [
{
"type": "openDoor",
"loc": [
7,
4
],
"floorId": "MT72"
},
{
"type": "openDoor",
"loc": [
4,
7
],
"floorId": "MT72"
},
{
"type": "openDoor",
"loc": [
7,
10
],
"floorId": "MT72"
},
{
"type": "openDoor",
"loc": [
10,
7
],
"floorId": "MT72"
},
{
"type": "setValue",
"name": "flag:door_palace",
"value": "null"
},
"苍蓝之殿中心处的机关门已经开启,进入后会到达本章最后一个小区域"
]
}
]
},
+7 -7
View File
@@ -49,18 +49,18 @@ main.floors.MT75=
"cannotMoveIn": {},
"map": [
[648,648,648,648,648,648,648,648,648,648,648,648,648,648,648],
[648,491,491,494,491,494,657,676, 0,494,491,494,491,491,648],
[648,648,648,648,648,648,644,682,659,648,648,648,648,648,648],
[648,484,484,492,484,492,578,677,679,492,484,492,484,484,648],
[648,648,648,648,648,648,618,249,513,648,648,648,648,648,648],
[648, 0, 0, 0, 0,103,232,658,671,103, 0, 0, 0, 0,648],
[648,491,491,494,491,494, 0, 0, 0,494,491,494,491,491,648],
[648,648,648,648,648,648, 0, 0, 0,648,648,648,648,648,648],
[648,484,484,492,484,492, 0, 0, 0,492,484,492,484,484,648],
[648,648,648,648,648,648, 0, 0, 0,648,648,648,648,648,648],
[648, 0, 0, 0, 0,103, 0, 0, 0,103, 0, 0, 0, 0,648],
[648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648],
[ 92, 0, 0,672, 0, 0, 0, 0, 0, 0, 0,599, 0, 0, 94],
[ 92, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 94],
[648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648],
[648, 0, 0, 0, 0,103, 0, 0, 0,103, 0, 0, 0, 0,648],
[648,648,648,648,648,648, 0, 0, 0,648,648,648,648,648,648],
[648,484,484,492,484,492, 0, 0, 0,492,484,492,484,484,648],
[648,648,648,648,648,648, 0,538, 0,648,648,648,648,648,648],
[648,648,648,648,648,648, 0, 0, 0,648,648,648,648,648,648],
[648,491,491,494,491,494, 0, 0, 0,494,491,494,491,491,648],
[648,648,648,648,648,648,648, 93,648,648,648,648,648,648,648]
],
+55 -2
View File
@@ -27,7 +27,60 @@ main.floors.MT84=
}
},
"beforeBattle": {},
"afterBattle": {},
"afterBattle": {
"6,7": [
{
"type": "setValue",
"name": "flag:door_palace",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:door_palace===4)",
"true": [
{
"type": "openDoor",
"loc": [
7,
4
],
"floorId": "MT72"
},
{
"type": "openDoor",
"loc": [
4,
7
],
"floorId": "MT72"
},
{
"type": "openDoor",
"loc": [
7,
10
],
"floorId": "MT72"
},
{
"type": "openDoor",
"loc": [
10,
7
],
"floorId": "MT72"
},
{
"type": "setValue",
"name": "flag:door_palace",
"value": "null"
},
"苍蓝之殿中心处的机关门已经开启,进入后会到达本章最后一个小区域"
]
}
]
},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
@@ -41,7 +94,7 @@ main.floors.MT84=
[648,232,648,648,538,648,378,648, 28,648,513,648,648, 0,648],
[648, 0,491,381, 0,648, 0,648, 0,648, 0, 29,484,677,648],
[648,648,648,648,648,648,618,648,682,648,648,648,648,648,648],
[648,466,467,468,695,692,487,648, 0, 0,484, 0,484, 0, 94],
[648,466,467,468,695,664,692,648, 0, 0,484, 0,484, 0, 94],
[648,648,648,648,648,648,618,648,682,648,648,648,648,648,648],
[648, 0,491,381, 0,648, 0,648, 0,648, 0, 29,484,677,648],
[648,232,648,648,538,648,376,648, 27,648,513,648,648, 0,648],
+7
View File
@@ -31,6 +31,13 @@ main.floors.MT91=
7,
0
]
},
"14,7": {
"floorId": "MT93",
"loc": [
0,
7
]
}
},
"beforeBattle": {},
+7 -7
View File
@@ -42,19 +42,19 @@ main.floors.MT92=
"cannotMoveIn": {},
"map": [
[648,648,648,648,648,648,648, 91,648,648,648,648,648,648,648],
[648,376, 0,491,679, 0,484, 0, 0,648, 0,381,648, 0,648],
[648,376, 0,491,679, 0,484, 0, 0,648, 0,381,648, 27,648],
[648,671,648,648,648,682,648,648,648,648,658,648,648, 0,648],
[648,381,484,648,484, 0,648,482,494, 0, 0, 0,232, 0,648],
[648,484,378,648, 0, 28,657, 0,648,648,648,648,648, 0,648],
[648,648,648,648,658,648,648,492,648, 0,644, 0,648, 0,648],
[648,381,484,648,484, 0,648,482,494,376, 0,491,232, 28,648],
[648,484,378,492, 0, 28,657, 0,648,648,648,648,648, 0,648],
[648,648,648,648,658,648,648,492,648, 0,644, 0,648,484,648],
[648, 0,482,648,491,648, 28, 0,648,491,648,484,677, 0,648],
[ 92, 0, 0,682, 0,658, 0,484,648,378,648,648,648,648,648],
[ 92, 0, 0,682, 0,658, 0,484,648,378,648,648,648,494,648],
[648,513,648,648,648,648,648,492,648, 0,679,491, 0, 27,648],
[648, 27,648,484,578,484, 0,381,648,648,648,648,648,677,648],
[648, 0,648, 0,648,648,648,682,648, 27,538,376,648,378,648],
[648, 0,648, 0,648,648,648,682,648, 27,538,376,492,378,648],
[648,484,249, 28,648, 28, 0,482,648, 0,648,484,648,484,648],
[648,648,648,648,648,657,648,648,648,484,648,658,648,682,648],
[648,487,376,378,618, 0,491, 0,513, 0,648, 0,682, 0,648],
[648,487,376,378,618, 0,491, 0,513, 0,492, 0,682, 0,648],
[648,648,648,648,648,648,648,648,648,648,648,648,648,648,648]
],
"bgmap": [
+114 -41
View File
@@ -1,45 +1,118 @@
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]
"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": {
"0,7": {
"floorId": "MT91",
"loc": [
14,
7
]
}
},
"beforeBattle": {},
"afterBattle": {
"10,7": [
{
"type": "setValue",
"name": "flag:door_palace",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:door_palace===4)",
"true": [
{
"type": "openDoor",
"loc": [
7,
4
],
"floorId": "MT72"
},
{
"type": "openDoor",
"loc": [
4,
7
],
"floorId": "MT72"
},
{
"type": "openDoor",
"loc": [
7,
10
],
"floorId": "MT72"
},
{
"type": "openDoor",
"loc": [
10,
7
],
"floorId": "MT72"
},
{
"type": "setValue",
"name": "flag:door_palace",
"value": "null"
},
"苍蓝之殿中心处的机关门已经开启,进入后会到达本章最后一个小区域"
]
}
]
},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[648,648,648,648,648,648,648,648,648,648,648,648,648,648,648],
[648, 0,491, 0,648, 0,648, 0,491, 0,648, 0,491, 0,648],
[648, 28, 0, 29,578,491,648,378, 0,381,648,381, 0,376,648],
[648,648,648,648,648, 0,648,648,648,232,648,648,648,671,648],
[648, 27, 0, 29,249,491,648, 27, 0, 28, 0, 0, 0, 0,648],
[648, 0,491, 0,648, 0,648, 0,491, 0,648,648,648,648,648],
[648,648,648,648,648,682,648,648,648,677,648,466, 0,467,648],
[ 92, 0, 0, 0, 0, 0,513, 0,487, 0,693, 0,665, 0,648],
[648,648,648,648,648,682,648,648,648,677,648,468, 0,695,648],
[648, 0,491, 0,648, 0,648, 0,491, 0,648,648,648,648,648],
[648, 28, 0, 29,249,491,648, 28, 0, 27, 0, 0, 0, 0,648],
[648,648,648,648,648, 0,648,648,648,232,648,648,648,671,648],
[648, 27, 0, 29,578,491,648,376, 0,381,648,381, 0,378,648],
[648, 0,491, 0,648, 0,648, 0,491, 0,648, 0,491, 0,648],
[648,648,648,648,648,648,648,648,648,648,648,648,648,648,648]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}
+24 -6
View File
@@ -1263,14 +1263,32 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
}
},
"I664": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
"cls": "equips",
"name": "极昼剑",
"canUseItemEffect": "true",
"text": "吸收白日之精华锻造而成。攻击+500,额外攻击+50",
"equip": {
"type": "武器",
"value": {
"mana": 50,
"atk": 500
},
"percentage": {}
}
},
"I665": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
"cls": "equips",
"name": "永夜盾",
"canUseItemEffect": "true",
"text": "集月光之精华锻造而成。防御+400,生命回复+25。",
"equip": {
"type": "盾牌",
"value": {
"def": 400,
"hpmax": 25
},
"percentage": {}
}
},
"I694": {
"cls": "items",