From ce8aa43412968ecf826971662b9307c596fc0b4d Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Fri, 30 Dec 2022 17:50:28 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E5=AE=8C=E5=96=84=E9=AB=98?= =?UTF-8?q?=E6=B8=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/libs/control.js | 15 ++++++++------- public/libs/ui.js | 4 +++- public/project/floors/MT6.js | 12 ++---------- 3 files changed, 13 insertions(+), 18 deletions(-) diff --git a/public/libs/control.js b/public/libs/control.js index c0b0698..4ee779b 100644 --- a/public/libs/control.js +++ b/public/libs/control.js @@ -754,10 +754,11 @@ control.prototype._setAutomaticRoute_drawRoute = function (moveStep) { ); ctx.fillStyle = '#bfbfbf'; ctx.strokeStyle = '#bfbfbf'; - ctx.lineWidth = 8; + ctx.lineWidth = 8 * devicePixelRatio; for (var m = 0; m < moveStep.length; m++) { if (m == moveStep.length - 1) { - ctx.fillRect( + core.fillRect( + ctx, moveStep[m].x * 32 + 10 - sx, moveStep[m].y * 32 + 10 - sy, 12, @@ -770,13 +771,13 @@ control.prototype._setAutomaticRoute_drawRoute = function (moveStep) { var currDir = moveStep[m].direction, nextDir = moveStep[m + 1].direction; ctx.moveTo( - cx - core.utils.scan[currDir].x * 11, - cy - core.utils.scan[currDir].y * 11 + (cx - core.utils.scan[currDir].x * 11) * devicePixelRatio, + (cy - core.utils.scan[currDir].y * 11) * devicePixelRatio ); - ctx.lineTo(cx, cy); + ctx.lineTo(cx * devicePixelRatio, cy * devicePixelRatio); ctx.lineTo( - cx + core.utils.scan[nextDir].x * 11, - cy + core.utils.scan[nextDir].y * 11 + (cx + core.utils.scan[nextDir].x * 11) * devicePixelRatio, + (cy + core.utils.scan[nextDir].y * 11) * devicePixelRatio ); ctx.stroke(); } diff --git a/public/libs/ui.js b/public/libs/ui.js index 849cb0f..a9e5695 100644 --- a/public/libs/ui.js +++ b/public/libs/ui.js @@ -1051,7 +1051,9 @@ ui.prototype.drawTip = function (text, id, frame) { var one = { text: text, textX: 21, - width: 26 + core.calWidth('data', realText, '16px Arial'), + width: + 26 + + core.calWidth('data', realText, '16px Arial') / devicePixelRatio, opacity: 0.1, stage: 1, frame: frame || 0, diff --git a/public/project/floors/MT6.js b/public/project/floors/MT6.js index c99721f..cd6a0e2 100644 --- a/public/project/floors/MT6.js +++ b/public/project/floors/MT6.js @@ -84,10 +84,6 @@ main.floors.MT6= "eachArrive": [], "parallelDo": "", "events": { - "5,5": [ - "开启技能后当前技能会在地图名右方显示", - "点开生命之泉技能后距离加生命回复剩余血瓶量会在生命回复上方显示" - ], "2,3": [ { "type": "changeFloor", @@ -126,12 +122,8 @@ main.floors.MT6= "4,4": [ { "type": "sleep", - "time": 1000 + "time": 300 }, - "\t[原始人]\b[down,hero].......", - "\t[原始人]\b[down,hero]感觉一些很深奥的东西流入了大脑", - "\t[原始人]\b[down,hero]果然可以提高我的智慧吗?", - "\t[原始人]\b[down,hero]看来我可以利用这些智慧来干些事情了", "现在开启了智慧加点功能,该功能将会贯穿整个游戏,下面请仔细阅读玩法", "人生不能后悔,一旦加过点后,便再也没有办法悔掉,加点时请慎重选择", "很多技能都有多个等级,升级需要消耗更多智慧,但收益也会随之增多", @@ -158,7 +150,7 @@ main.floors.MT6= [30064,30060,30118,30066, 0, 0, 0, 20, 29, 34, 20, 0, 20, 20, 20], [30072,30073,30126,30074, 0, 0, 32, 20, 20, 20, 20, 31, 0, 31, 20], [ 20, 0, 0, 0, 29, 0, 0, 20, 0, 0,204, 0, 31, 0, 20], - [ 20, 0, 0, 0, 0,129, 29,267, 0, 0, 20,276, 20, 20, 20], + [ 20, 0, 0, 0, 0, 0, 29,267, 0, 0, 20,276, 20, 20, 20], [ 20, 0, 0, 0, 0, 0, 20, 20, 20, 29, 20, 0, 0, 0, 20], [30060,30112,30113,30114,30065,30066, 0, 34, 0, 0, 20, 29, 20,368, 94], [30073,30112,30113,30114,30073,30074, 20, 20, 20,209, 0, 34, 0, 0, 20],