Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TitleState.hx #34

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 28 additions & 29 deletions source/TitleState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ import flixel.util.FlxColor;
import flixel.util.FlxTimer;
import lime.app.Application;
import openfl.Assets;
#if sys
import sys.FileSystem;
#end

using StringTools;

Expand All @@ -50,35 +47,39 @@ class TitleState extends MusicBeatState
var curWacky:Array<String> = [];

var wackyImage:FlxSprite;

var easterEggEnabled:Bool = true; //Disable this to hide the easter egg
// #if desktop
var easterEggKeyCombination:Array<FlxKey> = [FlxKey.B, FlxKey.B]; //bb stands for bbpanzu cuz he wanted this lmao
// #else // android
// var easterEggKeyCombination:Array<controls> = [controls.BACK, controls.BACK]; //backback stands for bbpanzu cuz he wanted this lmao
// #end
// #if desktop
var lastKeysPressed:Array<FlxKey> = [];
// #else // android
//var lastKeysPressed:Array<controls> = [];
//#end

var mustUpdate:Bool = false;
public static var updateVersion:String = '';

override public function create():Void
{
#if android
FlxG.android.preventDefaultKeys = [BACK];
#end

#if (polymod && !html5)
polymod.Polymod.init({modRoot: "mods", dirs: folders});
FlxG.android.preventDefaultKeys = [BACK];
#end

#if (polymod && !html5)
if (sys.FileSystem.exists('mods/')) {
var folders:Array<String> = [];
for (file in sys.FileSystem.readDirectory('mods/')) {
var path = haxe.io.Path.join(['mods/', file]);
if (sys.FileSystem.isDirectory(path)) {
folders.push(file);
}
}
if(folders.length > 0) {
polymod.Polymod.init({modRoot: "mods", dirs: folders});
}
}
#end

#if CHECK_FOR_UPDATES
if(!closedState) {
trace('checking for update');
var http = new haxe.Http(" ");
var http = new haxe.Http("https://raw.githubusercontent.com/ShadowMario/FNF-PsychEngine/main/gitVersion.txt");

http.onData = function (data:String)
{
Expand Down Expand Up @@ -471,45 +472,43 @@ class TitleState extends MusicBeatState
case 3:
addMoreText('Shadow Mario', 45);
addMoreText('RiverOaken', 45);
// credTextShit.text += '\npresent...';
// credTextShit.addText();
case 4:
deleteCoolText();
// credTextShit.visible = false;
// credTextShit.text = 'In association \nwith';
// credTextShit.screenCenter();
case 5:
createCoolText(['This is a mod to'], -60);
createCoolText(['lol amongus'], -60);
case 7:
addMoreText('This game right below lol', -60);
addMoreText('si ves esto eres gay xd', -60);
logoSpr.visible = true;
// credTextShit.text += '\nNewgrounds';
// credTextShit.text += '\nNewgrounds is god';
case 8:
deleteCoolText();
logoSpr.visible = false;
// credTextShit.visible = false;

// credTextShit.text = 'Shoutouts Tom Fulp';
// credTextShit.text = 'Te amo alonso';
// credTextShit.screenCenter();
case 9:
createCoolText([curWacky[0]]);
createCoolText([UwU[0]]);
// credTextShit.visible = true;
case 11:
addMoreText(curWacky[1]);
// credTextShit.text += '\nlmao';
case 12:
deleteCoolText();
// credTextShit.visible = false;
// credTextShit.text = "Friday";
// credTextShit.text = "Vs";
// credTextShit.screenCenter();
case 13:
addMoreText('Friday');
addMoreText('Vs');
// credTextShit.visible = true;
case 14:
addMoreText('Night');
// credTextShit.text += '\nNight';
addMoreText('Jefferson');
// credTextShit.text += '\n13n';
case 15:
addMoreText('Funkin'); // credTextShit.text += '\nFunkin';
addMoreText('Full Ass'); // credTextShit.text += '\nFull Ass';

case 16:
skipIntro();
Expand Down