Skip to content

Commit

Permalink
微调判定时间区间
Browse files Browse the repository at this point in the history
  • Loading branch information
MisaLiu committed Nov 9, 2022
1 parent 1b2830b commit c16e206
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ function showGameResultPopup(game)
{
qs('.play-result .judge-histogram').innerHTML = '';

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

Expand All @@ -778,14 +778,14 @@ function showGameResultPopup(game)

if (!game._settings.challengeMode)
{
if (-20 <= acc && acc <= 20) value.style.background = '#FFECA0';
else if (-40 <= acc && acc <= 40) value.style.background = '#B4E1FF';
if (-(80 / 360 * 100) <= acc && acc <= (80 / 360 * 100)) value.style.background = '#FFECA0';
else if (-(160 / 360 * 100) <= acc && acc <= (160 / 360 * 100)) value.style.background = '#B4E1FF';
else value.style.background = '#6c4343';
}
else
{
if (-20 <= acc && acc <= 20) value.style.background = '#FFECA0';
else if (-37.5 <= acc && acc <= 37.5) value.style.background = '#B4E1FF';
if (-(40 / 180 * 100) <= acc && acc <= (40 / 180 * 100)) value.style.background = '#FFECA0';
else if (-(75 / 180 * 100) <= acc && acc <= (75 / 180 * 100)) value.style.background = '#B4E1FF';
else value.style.background = '#6c4343';
}

Expand Down
6 changes: 3 additions & 3 deletions src/judgement/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import JudgePoint from './point';
import { Container, AnimatedSprite, Texture, Graphics, Sprite } from 'pixi.js-legacy';

const AllJudgeTimes = {
bad : 200,
bad : 180,
good : 160,
perfect : 80,

badChallenge : 100,
badChallenge : 90,
goodChallenge : 75,
perfectChallenge : 40
};
Expand All @@ -29,7 +29,7 @@ const ClickAnimatePointCache = (() =>

const result = Texture.from(canvas);
result.defaultAnchor.set(0.5);
return result
return result;
})();

export default class Judgement
Expand Down

0 comments on commit c16e206

Please sign in to comment.