cool stuff

This commit is contained in:
Yoshman29
2023-03-13 22:51:31 +01:00
parent e0076a4ddf
commit c97eb04e12
9 changed files with 88 additions and 22 deletions
+24
View File
@@ -0,0 +1,24 @@
package funkin.editors;
import flixel.addons.display.FlxBackdrop;
import funkin.options.*;
class EditorTreeMenu extends TreeMenu {
public var bg:FlxBackdrop;
public var bgType:String = "default";
public override function create() {
super.create();
bg = new FlxBackdrop();
bg.loadGraphic(Paths.image('editors/bgs/${bgType}'));
bg.antialiasing = true;
add(bg);
}
public override function update(elapsed:Float) {
super.update(elapsed);
bg.x += elapsed * 125;
bg.y += elapsed * 125;
}
}