1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-04 22:04:29 +00:00
Funkin/source/OutdatedSubState.hx
Cameron Taylor 0524953b18 mom chart
2020-12-22 19:57:55 -05:00

40 lines
856 B
Haxe

package;
import flixel.FlxG;
import flixel.FlxSubState;
import flixel.text.FlxText;
import flixel.util.FlxColor;
import lime.app.Application;
class OutdatedSubState extends MusicBeatSubstate
{
public function new()
{
super();
var ver = "v" + Application.current.meta.get('version');
var txt:FlxText = new FlxText(0, 0, 0,
"HEY! You're running an outdated version of the game!\nCurrent version is "
+ ver
+ " while the current version is "
+ NGio.GAME_VER
+ " ! Press Space to go to itch.io, or ESCAPE to ignore this!!",
32);
txt.setFormat("VCR OSD Mono", 32, FlxColor.WHITE, CENTER);
txt.screenCenter();
add(txt);
}
override function update(elapsed:Float)
{
if (controls.ACCEPT)
{
FlxG.openURL("https://ninja-muffin24.itch.io/funkin");
}
if (controls.BACK)
{
close();
}
super.update(elapsed);
}
}