From ed75cd00e3fb45e4538e1350322e26e99e87c256 Mon Sep 17 00:00:00 2001 From: Merlin <30577208+SimplyMerlin@users.noreply.github.com> Date: Sun, 11 Jul 2021 13:32:46 +0200 Subject: [PATCH] Blue balls now bounce to da beat --- source/Character.hx | 4 ++-- source/GameOverSubstate.hx | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/source/Character.hx b/source/Character.hx index aa47684..e4c64ae 100644 --- a/source/Character.hx +++ b/source/Character.hx @@ -224,7 +224,7 @@ class Character extends FlxSprite animation.addByPrefix('hey', 'BF HEY', 24, false); animation.addByPrefix('firstDeath', "BF dies", 24, false); - animation.addByPrefix('deathLoop', "BF Dead Loop", 24, true); + animation.addByPrefix('deathLoop', "BF Dead Loop", 24, false); animation.addByPrefix('deathConfirm', "BF Dead confirm", 24, false); animation.addByPrefix('scared', 'BF idle shaking', 24); @@ -300,7 +300,7 @@ class Character extends FlxSprite frames = Paths.getSparrowAtlas('bfPixelsDEAD','shared',true); animation.addByPrefix('singUP', "BF Dies pixel", 24, false); animation.addByPrefix('firstDeath', "BF Dies pixel", 24, false); - animation.addByPrefix('deathLoop', "Retry Loop", 24, true); + animation.addByPrefix('deathLoop', "Retry Loop", 24, false); animation.addByPrefix('deathConfirm', "RETRY CONFIRM", 24, false); animation.play('firstDeath'); diff --git a/source/GameOverSubstate.hx b/source/GameOverSubstate.hx index f784827..8a840b3 100644 --- a/source/GameOverSubstate.hx +++ b/source/GameOverSubstate.hx @@ -48,6 +48,8 @@ class GameOverSubstate extends MusicBeatSubstate bf.playAnim('firstDeath'); } + var startVibin:Bool = false; + override function update(elapsed:Float) { super.update(elapsed); @@ -76,6 +78,7 @@ class GameOverSubstate extends MusicBeatSubstate if (bf.animation.curAnim.name == 'firstDeath' && bf.animation.curAnim.finished) { FlxG.sound.playMusic(Paths.music('gameOver' + stageSuffix)); + startVibin = true; } if (FlxG.sound.music.playing) @@ -88,6 +91,10 @@ class GameOverSubstate extends MusicBeatSubstate { super.beatHit(); + if (startVibin && !isEnding) + { + bf.playAnim('deathLoop', true); + } FlxG.log.add('beat'); }