score change

This commit is contained in:
Cameron Taylor 2023-03-02 04:20:03 -05:00
parent af364717fe
commit f9a7e309fb

View file

@ -2025,7 +2025,19 @@ class PlayState extends MusicBeatState
grpNoteSplashes.add(noteSplash); grpNoteSplashes.add(noteSplash);
} }
// Only add the score if you're not on practice mode // Only add the score if you're not on practice mode
if (!isPracticeMode) songScore += score; if (!isPracticeMode)
{
songScore += score;
var pressArray:Array<Bool> = [
controls.NOTE_LEFT_P,
controls.NOTE_DOWN_P,
controls.NOTE_UP_P,
controls.NOTE_RIGHT_P
];
var lol:Array<Int> = cast pressArray;
inputSpitter.push(Std.int(Conductor.songPosition) + " " + lol.join(" ") + " " + Std.string(score) + " " + songScore);
}
comboPopUps.displayRating(daRating); comboPopUps.displayRating(daRating);
if (Highscore.tallies.combo >= 10 || Highscore.tallies.combo == 0) comboPopUps.displayCombo(Highscore.tallies.combo); if (Highscore.tallies.combo >= 10 || Highscore.tallies.combo == 0) comboPopUps.displayCombo(Highscore.tallies.combo);
} }
@ -2112,11 +2124,11 @@ class PlayState extends MusicBeatState
controls.NOTE_RIGHT_R controls.NOTE_RIGHT_R
]; ];
if (pressArray.contains(true)) // if (pressArray.contains(true))
{ // {
var lol:Array<Int> = cast pressArray; // var lol:Array<Int> = cast pressArray;
inputSpitter.push(Std.int(Conductor.songPosition) + " " + lol.join(" ")); // inputSpitter.push(Std.int(Conductor.songPosition) + " " + lol.join(" "));
} // }
if (FlxG.keys.justPressed.B) trace(inputSpitter.join("\n")); if (FlxG.keys.justPressed.B) trace(inputSpitter.join("\n"));
@ -2239,7 +2251,19 @@ class PlayState extends MusicBeatState
health += event.healthChange; health += event.healthChange;
if (!isPracticeMode) songScore += event.scoreChange; if (!isPracticeMode)
{
songScore += event.scoreChange;
var pressArray:Array<Bool> = [
controls.NOTE_LEFT_P,
controls.NOTE_DOWN_P,
controls.NOTE_UP_P,
controls.NOTE_RIGHT_P
];
var lol:Array<Int> = cast pressArray;
inputSpitter.push(Std.int(Conductor.songPosition) + " " + lol.join(" ") + " " + Std.string(event.scoreChange) + " " + songScore);
}
if (event.playSound) if (event.playSound)
{ {
@ -2259,7 +2283,21 @@ class PlayState extends MusicBeatState
if (event.eventCanceled) return; if (event.eventCanceled) return;
health -= 0.0775; health -= 0.0775;
if (!isPracticeMode) songScore -= 10;
if (!isPracticeMode)
{
songScore -= 10;
// messy copy paste rn lol
var pressArray:Array<Bool> = [
controls.NOTE_LEFT_P,
controls.NOTE_DOWN_P,
controls.NOTE_UP_P,
controls.NOTE_RIGHT_P
];
var lol:Array<Int> = cast pressArray;
inputSpitter.push(Std.int(Conductor.songPosition) + " " + lol.join(" ") + " " + Std.string(-10) + " " + songScore);
}
vocals.volume = 0; vocals.volume = 0;
if (Highscore.tallies.combo != 0) if (Highscore.tallies.combo != 0)