diff --git a/Project.xml b/Project.xml index 06c3dee..9c97815 100644 --- a/Project.xml +++ b/Project.xml @@ -71,6 +71,7 @@ + diff --git a/mods/mod/test/_polymod_icon.png b/mods/mod/test/_polymod_icon.png new file mode 100644 index 0000000..fb026bd Binary files /dev/null and b/mods/mod/test/_polymod_icon.png differ diff --git a/mods/readme.txt b/mods/readme.txt new file mode 100644 index 0000000..e69de29 diff --git a/source/FreeplayState.hx b/source/FreeplayState.hx index faf8652..7c80963 100644 --- a/source/FreeplayState.hx +++ b/source/FreeplayState.hx @@ -54,7 +54,7 @@ class FreeplayState extends MusicBeatState private var NameAlpha:Alphabet; var loadingPack:Bool = false; - + var songColors:Array = [ 0xFF00137F, // GF but its actually dave! diff --git a/source/MainMenuState.hx b/source/MainMenuState.hx index beb021e..bc550ac 100644 --- a/source/MainMenuState.hx +++ b/source/MainMenuState.hx @@ -401,6 +401,11 @@ class MainMenuState extends MusicBeatState changeItem(1); } + /*if (FlxG.keys.justPressed.M) + { + FlxG.switchState(new ModState()); + }*/ + if (controls.BACK) { FlxG.switchState(new TitleState()); diff --git a/source/ModState.hx b/source/ModState.hx new file mode 100644 index 0000000..83054dc --- /dev/null +++ b/source/ModState.hx @@ -0,0 +1,108 @@ +/*package; not used +import flixel.group.FlxGroup.FlxTypedGroup; +#if sys +import sys.io.File; +import sys.io.Process; +#end +import flixel.*; +import flixel.util.FlxColor; +import flixel.util.FlxTimer; +#if sys import sys.FileSystem; #end + + +class ModState extends FlxState //why did this extend music beat state? +{ + var bg:FlxSprite; + var controlsStrings:Array = []; + private var grpControls:FlxTypedGroup; + + public static var bgPaths:Array = [ + 'Aadsta', + 'ArtiztGmer', + 'DeltaKastel', + 'DeltaKastel2', + 'DeltaKastel3', + 'DeltaKastel4', + 'DeltaKastel5', + 'diamond man', + 'Jukebox', + 'kiazu', + 'Lancey', + 'mamakotomi', + 'mantis', + 'mepperpint', + 'morie', + 'neon', + 'Onuko', + 'ps', + 'ricee_png', + 'sk0rbias', + 'SwagnotrllyTheMod', + 'zombought', + ]; + + public function new() + { + super(); + } + + override public function create():Void + { + + grpControls = new FlxTypedGroup(); + add(grpControls); + + for (i in 0...controlsStrings.length) + { + var controlLabel:Alphabet = new Alphabet(0, (70 * i) + 30, controlsStrings[i], true, false); + controlLabel.screenCenter(X); + controlLabel.itemType = 'Vertical'; + controlLabel.isMenuItem = true; + controlLabel.targetY = i; + grpControls.add(controlLabel); + // DONT PUT X IN THE FIRST PARAMETER OF new ALPHABET() !! + } + + if(FlxG.sound.music != null) + FlxG.sound.music.stop(); + bg = new FlxSprite(-80).loadGraphic(randomizeBG()); + bg.scrollFactor.set(); + bg.setGraphicSize(Std.int(bg.width * 1.1)); + bg.updateHitbox(); + bg.screenCenter(); + bg.antialiasing = true; + bg.color = 0xFFB271FD; + add(bg); + super.create(); + } + + override public function update(elapsed:Float):Void + { + super.update(elapsed); + + if (FlxG.keys.pressed.ESCAPE) + { + endIt(); + } + + } + + public static function randomizeBG():flixel.system.FlxAssets.FlxGraphicAsset + { + var date = Date.now(); + var chance:Int = FlxG.random.int(0, bgPaths.length - 1); + if(date.getMonth() == 3 && date.getDate() == 1) + { + return Paths.image('backgrounds/ramzgaming'); + } + else + { + return Paths.image('backgrounds/${bgPaths[chance]}'); + } + } + public function endIt() + { + FlxG.switchState(new MainMenuState()); + } + +} */ \ No newline at end of file diff --git a/source/OptionsMenu.hx b/source/OptionsMenu.hx index 8bb4c25..8178a51 100644 --- a/source/OptionsMenu.hx +++ b/source/OptionsMenu.hx @@ -207,7 +207,7 @@ class OptionsMenu extends MusicBeatState updateGroupControls(FlxG.save.data.modchart ? 'Mod Chart OFF' : 'Mod Chart ON', 12, 'Vertical'); #if debug case 13: - if (!awaitingExploitation) FlxG.save.data.botplay = !FlxG.save.data.botplay; + //if (!awaitingExploitation) FlxG.save.data.botplay = !FlxG.save.data.botplay; updateGroupControls(FlxG.save.data.botplay ? 'Bot Play ON' : 'Bot Play OFF', 13, 'Vertical'); #end } diff --git a/source/Paths.hx b/source/Paths.hx index 407c788..8c13179 100644 --- a/source/Paths.hx +++ b/source/Paths.hx @@ -181,7 +181,6 @@ class Paths return defaultReturnPath; } } - /* WARNING!! DO NOT USE splashImage, splashFile or getSplashSparrowAtlas for searching stuff in paths!!!!! diff --git a/source/TitleState.hx b/source/TitleState.hx index 4e1a13f..f2c9d71 100644 --- a/source/TitleState.hx +++ b/source/TitleState.hx @@ -50,13 +50,14 @@ class TitleState extends MusicBeatState var eye:FlxSprite; var loopEyeTween:FlxTween; + override public function create():Void - { - fun = FlxG.random.int(0, 999); - if(fun == 1) - { - LoadingState.loadAndSwitchState(new SusState()); - } + { + //fun = FlxG.random.int(0, 999); + //if(fun == 1) + //{ + // LoadingState.loadAndSwitchState(new SusState()); + //} PlayerSettings.init();