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) {