From 6c5cfeac4cc9571556757bf18b3d311f91bf5993 Mon Sep 17 00:00:00 2001 From: HackDev <80620538+Hackx2@users.noreply.github.com> Date: Wed, 27 Mar 2024 18:23:06 +0000 Subject: [PATCH] Dats crazy --- gitVersion.txt | 2 +- source/backend/data/EngineData.hx | 2 +- source/backend/system/MusicBeatState.hx | 5 +++++ source/backend/system/MusicBeatSubstate.hx | 5 +++++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gitVersion.txt b/gitVersion.txt index 7dff5b89..f4778493 100644 --- a/gitVersion.txt +++ b/gitVersion.txt @@ -1 +1 @@ -0.2.1 \ No newline at end of file +0.2.2 \ No newline at end of file diff --git a/source/backend/data/EngineData.hx b/source/backend/data/EngineData.hx index ac174264..4057f424 100644 --- a/source/backend/data/EngineData.hx +++ b/source/backend/data/EngineData.hx @@ -12,7 +12,7 @@ using StringTools; //** Other Shit **/ public static var mainCoreShit = { - coreVersion: '0.2.1', + coreVersion: '0.2.2', colorMenuImage: 0xff525252, mainRepo: "https://github.com/Hackx2/FNF-AstroEngine", } diff --git a/source/backend/system/MusicBeatState.hx b/source/backend/system/MusicBeatState.hx index e0945c05..d9d7344b 100644 --- a/source/backend/system/MusicBeatState.hx +++ b/source/backend/system/MusicBeatState.hx @@ -44,6 +44,11 @@ class MusicBeatState extends FlxUIState } FlxTransitionableState.skipNextTransOut = false; } + + public function addBehindObject(obj:FlxBasic, obj2:FlxBasic) + return insert(members.indexOf(obj2), obj); + public function addAheadObject(obj:FlxBasic, obj2:FlxBasic) + return insert(members.indexOf(obj2) + 1, obj); override function update(elapsed:Float) { diff --git a/source/backend/system/MusicBeatSubstate.hx b/source/backend/system/MusicBeatSubstate.hx index 92acc49d..575545c5 100644 --- a/source/backend/system/MusicBeatSubstate.hx +++ b/source/backend/system/MusicBeatSubstate.hx @@ -27,6 +27,11 @@ class MusicBeatSubstate extends FlxSubState inline function get_controls():Controls return PlayerSettings.player1.controls; + + public function addBehindObject(obj:FlxBasic, obj2:FlxBasic) + return insert(members.indexOf(obj2), obj); + public function addAheadObject(obj:FlxBasic, obj2:FlxBasic) + return insert(members.indexOf(obj2) + 1, obj); override function update(elapsed:Float) {