Static variables

@:value(["EASY", "NORMAL", "HARD"])staticdifficultyArray:Array<String> = ["EASY", "NORMAL", "HARD"]

Static methods

staticcoolTextFile(path:String):Array<String>

staticdifficultyString():String

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

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

Returns v if not null, defaultValue otherwise.

Parameters:

v

The value

defaultValue

The default value

Returns:

The return value

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

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

Lerps from color1 into color2 in a cool way 😎

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)

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

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