mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-30 03:25:47 -05:00
Merge pull request #430 from FunkinCrew/feature/miss-judgement-debug
Add debug logging to Flixel debugger for miss judgements
This commit is contained in:
commit
96fe131544
1 changed files with 7 additions and 2 deletions
|
@ -43,7 +43,7 @@ class Scoring
|
||||||
case WEEK7: scoreNoteWEEK7(msTiming);
|
case WEEK7: scoreNoteWEEK7(msTiming);
|
||||||
case PBOT1: scoreNotePBOT1(msTiming);
|
case PBOT1: scoreNotePBOT1(msTiming);
|
||||||
default:
|
default:
|
||||||
trace('ERROR: Unknown scoring system: ' + scoringSystem);
|
FlxG.log.error('Unknown scoring system: ${scoringSystem}');
|
||||||
0;
|
0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,7 @@ class Scoring
|
||||||
case WEEK7: judgeNoteWEEK7(msTiming);
|
case WEEK7: judgeNoteWEEK7(msTiming);
|
||||||
case PBOT1: judgeNotePBOT1(msTiming);
|
case PBOT1: judgeNotePBOT1(msTiming);
|
||||||
default:
|
default:
|
||||||
trace('ERROR: Unknown scoring system: ' + scoringSystem);
|
FlxG.log.error('Unknown scoring system: ${scoringSystem}');
|
||||||
'miss';
|
'miss';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -145,7 +145,9 @@ class Scoring
|
||||||
case(_ < PBOT1_PERFECT_THRESHOLD) => true:
|
case(_ < PBOT1_PERFECT_THRESHOLD) => true:
|
||||||
PBOT1_MAX_SCORE;
|
PBOT1_MAX_SCORE;
|
||||||
default:
|
default:
|
||||||
|
// Fancy equation.
|
||||||
var factor:Float = 1.0 - (1.0 / (1.0 + Math.exp(-PBOT1_SCORING_SLOPE * (absTiming - PBOT1_SCORING_OFFSET))));
|
var factor:Float = 1.0 - (1.0 / (1.0 + Math.exp(-PBOT1_SCORING_SLOPE * (absTiming - PBOT1_SCORING_OFFSET))));
|
||||||
|
|
||||||
var score:Int = Std.int(PBOT1_MAX_SCORE * factor + PBOT1_MIN_SCORE);
|
var score:Int = Std.int(PBOT1_MAX_SCORE * factor + PBOT1_MIN_SCORE);
|
||||||
|
|
||||||
score;
|
score;
|
||||||
|
@ -169,6 +171,7 @@ class Scoring
|
||||||
case(_ < PBOT1_SHIT_THRESHOLD) => true:
|
case(_ < PBOT1_SHIT_THRESHOLD) => true:
|
||||||
'shit';
|
'shit';
|
||||||
default:
|
default:
|
||||||
|
FlxG.log.warn('Missed note: Bad timing ($absTiming < $PBOT1_SHIT_THRESHOLD)');
|
||||||
'miss';
|
'miss';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -257,6 +260,7 @@ class Scoring
|
||||||
case(_ < LEGACY_HIT_WINDOW * LEGACY_SHIT_THRESHOLD) => true:
|
case(_ < LEGACY_HIT_WINDOW * LEGACY_SHIT_THRESHOLD) => true:
|
||||||
'shit';
|
'shit';
|
||||||
default:
|
default:
|
||||||
|
FlxG.log.warn('Missed note: Bad timing ($absTiming < $LEGACY_SHIT_THRESHOLD)');
|
||||||
'miss';
|
'miss';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -336,6 +340,7 @@ class Scoring
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
FlxG.log.warn('Missed note: Bad timing ($absTiming < $WEEK7_HIT_WINDOW)');
|
||||||
return 'miss';
|
return 'miss';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue