Instant Respawn

This commit is contained in:
Lil-Parrot
2021-08-08 00:10:12 -05:00
parent c69e83d8e0
commit 24acbc5f74
5 changed files with 40 additions and 0 deletions

View File

@ -284,6 +284,27 @@ class ResetButtonOption extends Option
}
}
class InstantRespawn extends Option
{
public function new(desc:String)
{
super();
description = desc;
}
public override function press():Bool
{
FlxG.save.data.InstantRespawn = !FlxG.save.data.InstantRespawn;
display = updateDisplay();
return true;
}
private override function updateDisplay():String
{
return "Instant Respawn " + (!FlxG.save.data.InstantRespawn ? "off" : "on");
}
}
class FlashingLightsOption extends Option
{
public function new(desc:String)