Skip to content

Commit

Permalink
umm flixel stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Nov 14, 2023
1 parent 1a4df45 commit bf44720
Show file tree
Hide file tree
Showing 10 changed files with 844 additions and 1,854 deletions.
18 changes: 18 additions & 0 deletions source/backend/animation/PsychAnimationController.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package backend.animation;

import flixel.animation.FlxAnimationController;

class PsychAnimationController extends FlxAnimationController
{
public var followGlobalSpeed:Bool = true;

public override function update(elapsed:Float):Void {
if (_curAnim != null) {
var speed:Float = timeScale;
if (followGlobalSpeed) speed *= FlxG.animationTimeScale;
_curAnim.update(elapsed * speed);
} else if (_prerotated != null) {
_prerotated.angle = _sprite.angle;
}
}
}
Loading

0 comments on commit bf44720

Please sign in to comment.