Static methods

static__loadSong(name:String, difficulty:String):Void

staticaddZeros(str:String, num:Int):String

@:value({ axes : XY })staticcameraCenter(obj:FlxObject, cam:FlxCamera, axes:FlxAxes = XY):Void

staticcoolTextFile(path:String):Array<String>

staticfpsLerp(v1:Float, v2:Float, ratio:Float):Float

staticgetAtt(xml:Access, name:String):String

staticgetColorFromDynamic(c:Dynamic):Null<FlxColor>

Tries to get a color from a Dynamic variable.

Parameters:

c

Dynamic color.

Returns:

The result color, or null if invalid.

staticgetDefault<T>(v:T, defaultValue:T):T

staticgetFPSRatio(ratio:Float):Float

Modifies a lerp ratio based on current FPS to keep a stable speed on higher framerate.

Parameters:

ratio

Ratio

Returns:

FPS-Modified Ratio

staticgetSizeString(size:Float):String

staticisNaN(v:Dynamic):Bool

statickeyToString(key:Null<FlxKey>):String

staticlast<T>(array:Array<T>):T

@:value({ fpsSensitive : false })staticlerpColor(color1:FlxColor, color2:FlxColor, ratio:Float, fpsSensitive:Bool = false):FlxColor

Lerps from color1 into color2 (Shortcut to FlxColor.interpolate)

Parameters:

color1

Color 1

color2

Color 2

ratio

Ratio

fpsSensitive

Whenever the ratio should be case sentivive (adapted when game is running at 120 instead of 60)

staticloadAnimatedGraphic(spr:FlxSprite, path:String):FlxSprite

@:value({ Key : null, Unique : false })staticloadFrames(path:String, Unique:Bool = false, ?Key:String):FlxFramesCollection

@:value({ difficulty : "normal" })staticloadSong(name:String, difficulty:String = "normal"):Void

@:value({ difficulty : "normal" })staticloadWeek(weekData:WeekData, difficulty:String = "normal"):Void

@:value({ min : 0 })staticnumberArray(max:Int, min:Int = 0):Array<Int>

staticparseJson(assetPath:String):Unknown

staticinlineparseJsonString(str:String):Unknown

@:value({ volume : 1, menuSFX : 0 })staticplayMenuSFX(menuSFX:Int = 0, volume:Float = 1):Void

Plays a specified Menu SFX.

Parameters:

menuSFX

Menu SFX to play

volume

At which volume it should play

@:value({ fadeIn : false })staticplayMenuSong(fadeIn:Bool = false):Void

@:value({ Looped : true, Volume : 1, DefaultBPM : 102 })staticplayMusic(path:String, DefaultBPM:Int = 102, Volume:Int = 1, Looped:Bool = true, ?Group:FlxSoundGroup):Void

staticsetFieldDefault<T>(v:Dynamic, name:String, defaultValue:T):T

staticsetSpriteSize(sprite:FlxSprite, width:Float, height:Float):Void

@:value({ maxScale : 0, fill : true })staticsetUnstretchedGraphicSize(sprite:FlxSprite, width:Int, height:Int, fill:Bool = true, maxScale:Float = 0):Void

staticswitchAnimFrames(anim1:FlxAnimation, anim2:FlxAnimation):Void