1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-18 12:52:49 +00:00
Funkin/source/OptionsMenu.hx

30 lines
583 B
Haxe
Raw Normal View History

package;
import flixel.FlxG;
import flixel.FlxSprite;
import flixel.util.FlxColor;
class OptionsMenu extends MusicBeatState
{
override function create()
{
2021-01-04 23:56:30 +00:00
var menuBG:FlxSprite = new FlxSprite().loadGraphic('assets/images/menuDesat.png');
menuBG.color = 0xFFea71fd;
menuBG.setGraphicSize(Std.int(menuBG.width * 1.1));
menuBG.updateHitbox();
menuBG.screenCenter();
menuBG.antialiasing = true;
add(menuBG);
super.create();
}
override function update(elapsed:Float)
{
if (controls.BACK)
FlxG.switchState(new MainMenuState());
super.update(elapsed);
}
}