Skip to content

Commit

Permalink
Uhh some stuff change need help on polymod
Browse files Browse the repository at this point in the history
  • Loading branch information
CamLikesKirby committed May 10, 2024
1 parent c6f9821 commit 11d1048
Show file tree
Hide file tree
Showing 9 changed files with 123 additions and 9 deletions.
1 change: 1 addition & 0 deletions Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
<haxelib name="flixel-addons" />
<haxelib name="hscript" />
<haxelib name="actuate" />
<haxelib name="polymod"/>
<haxelib name="flixel-ui" />
<haxelib name="faxe" if='switch'/>
<haxelib name="hxCodec" if="desktop || android" />
Expand Down
Binary file added mods/mod/test/_polymod_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added mods/readme.txt
Empty file.
2 changes: 1 addition & 1 deletion source/FreeplayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class FreeplayState extends MusicBeatState
private var NameAlpha:Alphabet;

var loadingPack:Bool = false;

var songColors:Array<FlxColor> =
[
0xFF00137F, // GF but its actually dave!
Expand Down
5 changes: 5 additions & 0 deletions source/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
108 changes: 108 additions & 0 deletions source/ModState.hx
Original file line number Diff line number Diff line change
@@ -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<String> = [];
private var grpControls:FlxTypedGroup<Alphabet>;
public static var bgPaths:Array<String> = [
'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<Alphabet>();
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());
}
} */
2 changes: 1 addition & 1 deletion source/OptionsMenu.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
1 change: 0 additions & 1 deletion source/Paths.hx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ class Paths
return defaultReturnPath;
}
}

/*
WARNING!!
DO NOT USE splashImage, splashFile or getSplashSparrowAtlas for searching stuff in paths!!!!!
Expand Down
13 changes: 7 additions & 6 deletions source/TitleState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 11d1048

Please sign in to comment.