1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-05 14:24:28 +00:00

Merge pull request #287 from FunkinCrew/bugfix/week-7-death

Fix week 7 death animations.
This commit is contained in:
Cameron Taylor 2024-01-16 06:26:21 -05:00 committed by GitHub
commit f371559e81

View file

@ -94,11 +94,12 @@ class GameOverSubState extends MusicBeatSubState
// //
// Add a black background to the screen. // Add a black background to the screen.
var bg = new FlxSprite().makeGraphic(FlxG.width, FlxG.height, FlxColor.BLACK); var bg = new FlxSprite().makeGraphic(FlxG.width * 2, FlxG.height * 2, FlxColor.BLACK);
// We make this transparent so that we can see the stage underneath during debugging, // We make this transparent so that we can see the stage underneath during debugging,
// but it's normally opaque. // but it's normally opaque.
bg.alpha = transparent ? 0.25 : 1.0; bg.alpha = transparent ? 0.25 : 1.0;
bg.scrollFactor.set(); bg.scrollFactor.set();
bg.screenCenter();
add(bg); add(bg);
// Pluck Boyfriend from the PlayState and place him (in the same position) in the GameOverSubState. // Pluck Boyfriend from the PlayState and place him (in the same position) in the GameOverSubState.
@ -220,6 +221,7 @@ class GameOverSubState extends MusicBeatSubState
playJeffQuote(); playJeffQuote();
// Start music at lower volume // Start music at lower volume
startDeathMusic(0.2, false); startDeathMusic(0.2, false);
boyfriend.playAnimation('deathLoop' + animationSuffix);
} }
default: default:
// Start music at normal volume once the initial death animation finishes. // Start music at normal volume once the initial death animation finishes.