bf gf dead offsets

also lets you enter anim debug from game over screen, and with player1 if holding shift
This commit is contained in:
MtH 2021-04-11 18:41:23 +02:00
parent a8ba71e9bf
commit 9cc85273b8
3 changed files with 12 additions and 5 deletions

View File

@ -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);

View File

@ -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)