File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import funkin.options.*;
7
7
class EditorTreeMenu extends TreeMenu {
8
8
public var bg : FlxBackdrop ;
9
9
public var bgType : String = " default" ;
10
+ public var bgMovement : FlxPoint = new FlxPoint ();
10
11
11
12
public override function create () {
12
13
super .create ();
@@ -16,16 +17,16 @@ class EditorTreeMenu extends TreeMenu {
16
17
bg = new FlxBackdrop ();
17
18
bg .loadGraphic (Paths .image (' editors/bgs/ ${bgType }' ));
18
19
bg .antialiasing = true ;
20
+ setBackgroundRotation (- 5 );
19
21
add (bg );
20
22
}
21
23
22
- public override function exit () {
23
- FlxG .switchState (new MainMenuState ());
24
+ public inline function setBackgroundRotation (rotation : Float ) {
25
+ bg .rotation = rotation ;
26
+ bg .velocity .set (85 , 0 ).degrees = bg .rotation ;
24
27
}
25
28
26
- public override function update (elapsed : Float ) {
27
- super .update (elapsed );
28
- bg .x + = elapsed * 125 ;
29
- bg .y + = elapsed * 125 ;
29
+ public override function exit () {
30
+ FlxG .switchState (new MainMenuState ());
30
31
}
31
32
}
You can’t perform that action at this time.
0 commit comments