LOSS SCREEN WIP

This commit is contained in:
Cameron Taylor
2020-10-27 03:35:23 -07:00
parent bd6e2129b8
commit 0c31cc29ee
19 changed files with 583 additions and 320 deletions

View File

@ -9,7 +9,7 @@ import flixel.util.FlxColor;
class PauseSubState extends FlxSubState
{
public function new()
public function new(x:Float, y:Float)
{
super();
var bg:FlxSprite = new FlxSprite().makeGraphic(FlxG.width, FlxG.height, FlxColor.BLACK);
@ -17,6 +17,12 @@ class PauseSubState extends FlxSubState
bg.scrollFactor.set();
add(bg);
var bf:Boyfriend = new Boyfriend(x, y);
bf.scrollFactor.set();
// add(bf);
bf.playAnim('firstDeath');
bg.cameras = [FlxG.cameras.list[1]];
}