Skip to content

Commit

Permalink
lmao fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoshubs authored and Yoshubs committed Oct 7, 2021
1 parent 57d9c6b commit 1a23ed8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Main extends Sprite
public static var mainClassState:Class<FlxState> = Init; // Determine the main class state of the game
public static var framerate:Int = 120; // How many frames per second the game should run at.

public static var gameVersion:String = '0.2.4.1';
public static var gameVersion:String = '0.2.4.2';

var zoom:Float = -1; // If -1, zoom is automatically calculated to fit the window dimensions.
var skipSplash:Bool = true; // Whether to skip the flixel splash screen that appears in release mode.
Expand Down
8 changes: 5 additions & 3 deletions source/gameObjects/userInterface/ClassHUD.hx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ class ClassHUD extends FlxTypedGroup<FlxBasic>
iconP2.animation.curAnim.curFrame = 0;
}

private final divider:String = ' - ';

public function updateScoreText()
{
var importSongScore = PlayState.songScore;
Expand All @@ -135,9 +137,9 @@ class ClassHUD extends FlxTypedGroup<FlxBasic>
var displayAccuracy:Bool = Init.trueSettings.get('Display Accuracy');
if (displayAccuracy)
{
scoreBar.text += ' // Accuracy: ' + Std.string(Math.floor(Timings.getAccuracy() * 100) / 100) + '%' + Timings.comboDisplay;
scoreBar.text += ' // Combo Breaks: ' + Std.string(PlayState.misses);
scoreBar.text += ' // Rank: ' + Std.string(Timings.returnScoreRating().toUpperCase());
scoreBar.text += 'Accuracy: ' + Std.string(Math.floor(Timings.getAccuracy() * 100) / 100) + '%' + Timings.comboDisplay;
scoreBar.text += divider + 'Combo Breaks: ' + Std.string(PlayState.misses);
scoreBar.text += divider + 'Rank: ' + Std.string(Timings.returnScoreRating().toUpperCase());
}

scoreBar.x = ((FlxG.width / 2) - (scoreBar.width / 2));
Expand Down
2 changes: 2 additions & 0 deletions source/meta/state/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1281,6 +1281,8 @@ class PlayState extends MusicBeatState
songMusic.onComplete = endSong;
vocals.play();

resyncVocals();

#if !html5
// Song duration in a float, useful for the time left feature
songLength = songMusic.length;
Expand Down

0 comments on commit 1a23ed8

Please sign in to comment.