1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-10-31 20:04:32 +00:00
Funkin/source/PauseSubState.hx

27 lines
462 B
Haxe
Raw Normal View History

2020-10-09 21:24:20 +00:00
package;
import flixel.FlxG;
import flixel.FlxSprite;
import flixel.FlxSubState;
import flixel.util.FlxColor;
class PauseSubState extends FlxSubState
{
public function new()
{
super();
var bg:FlxSprite = new FlxSprite().makeGraphic(FlxG.width, FlxG.height, FlxColor.BLACK);
bg.alpha = 0.6;
bg.scrollFactor.set();
add(bg);
}
override function update(elapsed:Float)
{
super.update(elapsed);
if (FlxG.keys.justPressed.ENTER)
close();
}
}