Codename LogoCodename Logo

funkin.backend.FunkinSprite

APIWiki

Static methods

Constructor

View in GitHub

new(X:Float = 0, Y:Float = 0, ?SimpleGraphic:Null<FlxGraphicAsset>)

Variables

animDatas:Map<String, AnimData> = []

animOffsets:Map<String, FlxPoint> = new Map<String,FlxPoint>()

beatAnims:Array<BeatAnim> = []

beatInterval:Int = 2

ODD interval -> asynced; EVEN interval -> synced

beatOffset:Int = 0

debugMode:Bool = false

extra:Map<String, Dynamic> = []

initialZoom:Float = 1

name:String

skipNegativeBeats:Bool = false

zoomFactor:Float = 1

Methods

View in GitHub

addOffset(name:String, x:Float = 0, y:Float = 0):Void

View in GitHub

beatHit(curBeat:Int):Void

View in GitHub

getAnim(name:String):OneOfTwo<FlxAnimation, FlxSymbolAnimation>

View in GitHub

inlinegetAnimOffset(name:String):Null<FlxPoint>

View in GitHub

inlinegetNameList():Array<String>

View in GitHub

inlinehasAnimation(AnimName:String):Bool

View in GitHub

loadSprite(path:String, Unique:Bool = false, ?Key:String):Void

View in GitHub

measureHit(curMeasure:Int):Void

View in GitHub

onPropertySet(property:String, value:Dynamic):Void

View in GitHub

playAnim(AnimName:String, ?Force:Bool, Context:PlayAnimContext = NONE, Reversed:Bool = false, Frame:Int = 0):Void

View in GitHub

inlineremoveAnimation(name:String):Void

View in GitHub

stepHit(curBeat:Int):Void

View in GitHub

switchOffset(anim1:String, anim2:String):Void