Skip to content

Commit c16e206

Browse files
committed
微调判定时间区间
1 parent 1b2830b commit c16e206

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/index.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ function showGameResultPopup(game)
754754
{
755755
qs('.play-result .judge-histogram').innerHTML = '';
756756

757-
let noteJudgeTime = (!game._settings.challengeMode ? 200 : 100) / 1000;
757+
let noteJudgeTime = (!game._settings.challengeMode ? 180 : 90) / 1000;
758758
let noteTimeHigestCount = 0;
759759
let accHistogramValue = {};
760760

@@ -778,14 +778,14 @@ function showGameResultPopup(game)
778778

779779
if (!game._settings.challengeMode)
780780
{
781-
if (-20 <= acc && acc <= 20) value.style.background = '#FFECA0';
782-
else if (-40 <= acc && acc <= 40) value.style.background = '#B4E1FF';
781+
if (-(80 / 360 * 100) <= acc && acc <= (80 / 360 * 100)) value.style.background = '#FFECA0';
782+
else if (-(160 / 360 * 100) <= acc && acc <= (160 / 360 * 100)) value.style.background = '#B4E1FF';
783783
else value.style.background = '#6c4343';
784784
}
785785
else
786786
{
787-
if (-20 <= acc && acc <= 20) value.style.background = '#FFECA0';
788-
else if (-37.5 <= acc && acc <= 37.5) value.style.background = '#B4E1FF';
787+
if (-(40 / 180 * 100) <= acc && acc <= (40 / 180 * 100)) value.style.background = '#FFECA0';
788+
else if (-(75 / 180 * 100) <= acc && acc <= (75 / 180 * 100)) value.style.background = '#B4E1FF';
789789
else value.style.background = '#6c4343';
790790
}
791791

src/judgement/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import JudgePoint from './point';
55
import { Container, AnimatedSprite, Texture, Graphics, Sprite } from 'pixi.js-legacy';
66

77
const AllJudgeTimes = {
8-
bad : 200,
8+
bad : 180,
99
good : 160,
1010
perfect : 80,
1111

12-
badChallenge : 100,
12+
badChallenge : 90,
1313
goodChallenge : 75,
1414
perfectChallenge : 40
1515
};
@@ -29,7 +29,7 @@ const ClickAnimatePointCache = (() =>
2929

3030
const result = Texture.from(canvas);
3131
result.defaultAnchor.set(0.5);
32-
return result
32+
return result;
3333
})();
3434

3535
export default class Judgement

0 commit comments

Comments
 (0)