From 9cc85273b85857a84df8c5194e81e7e5a620599e Mon Sep 17 00:00:00 2001 From: MtH Date: Sun, 11 Apr 2021 18:41:23 +0200 Subject: [PATCH] bf gf dead offsets also lets you enter anim debug from game over screen, and with player1 if holding shift --- .../characters/bf-holding-gf-deadOffsets.txt | Bin 48 -> 79 bytes source/GameOverSubstate.hx | 10 ++++++---- source/PlayState.hx | 7 ++++++- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/assets/shared/images/characters/bf-holding-gf-deadOffsets.txt b/assets/shared/images/characters/bf-holding-gf-deadOffsets.txt index 65b045e6249fb3f6c7a9ff4e1ce474fd0fe65616..9994207480cf4d7203033cdf9769ed12b868a865 100644 GIT binary patch literal 79 zcmYexEGjN>Nlh%tP%t)EFf`#x0kM7Z^9w+HU1JE}IX^EgvnUrNWMsj`fExe+Wrh#V literal 48 vcmYexEGjN>Nlh%tP%uz1;7S3peDd=P6buz~4b32Y=ls01%%WVN0z*RpfpHHG diff --git a/source/GameOverSubstate.hx b/source/GameOverSubstate.hx index c427e140d..c0b6d516f 100644 --- a/source/GameOverSubstate.hx +++ b/source/GameOverSubstate.hx @@ -23,10 +23,7 @@ class GameOverSubstate extends MusicBeatSubstate var daBf:String = ''; switch (daStage) { - case 'school': - stageSuffix = '-pixel'; - daBf = 'bf-pixel-dead'; - case 'schoolEvil': + case 'school' | 'schoolEvil': stageSuffix = '-pixel'; daBf = 'bf-pixel-dead'; default: @@ -92,6 +89,11 @@ class GameOverSubstate extends MusicBeatSubstate FlxG.switchState(new FreeplayState()); } + #if debug + if (FlxG.keys.justPressed.EIGHT) + FlxG.switchState(new AnimationDebug(bf.curCharacter)); + #end + if (bf.animation.curAnim.name == 'firstDeath' && bf.animation.curAnim.curFrame == 12) { FlxG.camera.follow(camFollow, LOCKON, 0.01); diff --git a/source/PlayState.hx b/source/PlayState.hx index 25a4ffcae..3de0871bd 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -1976,7 +1976,12 @@ class PlayState extends MusicBeatState #if debug if (FlxG.keys.justPressed.EIGHT) - FlxG.switchState(new AnimationDebug(SONG.player2)); + { + if (FlxG.keys.pressed.SHIFT) + FlxG.switchState(new AnimationDebug(SONG.player1)); + else + FlxG.switchState(new AnimationDebug(SONG.player2)); + } #end if (generatedMusic && SONG.notes[Std.int(curStep / 16)] != null)