From 87286b68c0941420344ba54035dac9480268dd5e Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Sat, 24 Oct 2020 02:36:50 -0700 Subject: [PATCH] fix miss animations --- art/build-Itch-HTML.bat | 2 +- source/Note.hx | 2 +- source/PlayState.hx | 13 +++++-------- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/art/build-Itch-HTML.bat b/art/build-Itch-HTML.bat index 69c8f0d..ea26ffc 100644 --- a/art/build-Itch-HTML.bat +++ b/art/build-Itch-HTML.bat @@ -5,7 +5,7 @@ cd .. echo BUILDING GAME lime build html5 -debug echo UPLOADING TO ITCH -butler push ./export/release/html5/bin ninja-muffin24/funkin:html5 +butler push ./export/debug/html5/bin ninja-muffin24/funkin:html5 butler status ninja-muffin24/funkin:html5 echo ITCH SHIT UPDATED LMAOOOOO pause \ No newline at end of file diff --git a/source/Note.hx b/source/Note.hx index 35f2dc8..521dc22 100644 --- a/source/Note.hx +++ b/source/Note.hx @@ -78,7 +78,7 @@ class Note extends FlxSprite animation.play('redScroll'); } - trace(prevNote); + // trace(prevNote); if (isSustainNote && prevNote != null) { diff --git a/source/PlayState.hx b/source/PlayState.hx index ad051b6..f6c7607 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -1037,13 +1037,13 @@ class PlayState extends MusicBeatState switch (direction) { - case 1: - boyfriend.playAnim('singUPmiss', true); case 2: - boyfriend.playAnim('singRIGHTmiss', true); + boyfriend.playAnim('singUPmiss', true); case 3: + boyfriend.playAnim('singRIGHTmiss', true); + case 1: boyfriend.playAnim('singDOWNmiss', true); - case 4: + case 0: boyfriend.playAnim('singLEFTmiss', true); } } @@ -1160,10 +1160,7 @@ class PlayState extends MusicBeatState if (generatedMusic) { - notes.forEachAlive(function(daNote:Note) - { - notes.sort(FlxSort.byY, FlxSort.DESCENDING); - }); + notes.sort(FlxSort.byY, FlxSort.DESCENDING); } if (camZooming && FlxG.camera.zoom < 1.35 && totalBeats % 4 == 0)