Skip to content

Commit

Permalink
THE RESULTS SCREEN IS BACK????
Browse files Browse the repository at this point in the history
  • Loading branch information
x8c8r committed Jul 3, 2024
1 parent 32649b1 commit 980b890
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
8 changes: 4 additions & 4 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2090,11 +2090,11 @@ class PlayState extends MusicBeatState
persistentDraw = true;


// var sub:FlxSubState = new ResultsSubState(boyfriend.getScreenPosition().x, boyfriend.getScreenPosition().y, results, this);
// sub.cameras = [camHUD];
// openSubState(sub);
var sub:FlxSubState = new ResultsSubState(boyfriend.getScreenPosition().x, boyfriend.getScreenPosition().y, results, this);
sub.cameras = [camHUD];
openSubState(sub);

wakeTheFuckUp();
// wakeTheFuckUp();
}

function endSongEvents() {
Expand Down
17 changes: 8 additions & 9 deletions source/ResultsSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,14 @@ class ResultsSubState extends MusicBeatSubstate {
else
selectedJudgement = "worst";

if (music != null)
judgementTween = FlxTween.tween(music, {"volume": 0}, 4, {ease: FlxEase.linear}).start();
FlxG.sound.music.fadeOut(4.0);

judgement = new FlxSound().loadEmbedded(Paths.sound('judgements/'+selectedJudgement), false, true).play();
judgement = new FlxSound().loadEmbedded(Paths.sound('judgements/'+selectedJudgement, "shared"), false, true).play();
judgement.volume = 0.5;
judgement.onComplete = () -> {
if (music != null)
judgementTween = FlxTween.tween(music, {"volume": 0}, 4, {ease: FlxEase.linear}).start();
};

canExit = true;
});
Expand All @@ -141,12 +144,8 @@ class ResultsSubState extends MusicBeatSubstate {
// soundTimer.cancel();
// judgementTimer.cancel();

// if (textTween != null)
// textTween.cancel();
// if (bgTween != null)
// bgTween.cancel();
// if (judgementTween != null)
// judgementTween.cancel();
judgementTween.cancel();
FlxG.sound.destroy();

playState.wakeTheFuckUp();
music.destroy();
Expand Down

0 comments on commit 980b890

Please sign in to comment.