Codename LogoCodename Logo

funkin.backend.assets.Paths

APIWikiTools

Static variables

View in GitHub

staticfinalinlineread onlySOUND_EXT:String = "ogg"

Preferred sound extension for the game's audio files. Currently is set to mp3 for web targets, and ogg for other targets.

View in GitHub

statictempFramesCache:Map<String, FlxFramesCollection> = []

Static methods

View in GitHub

staticinlineawd(key:String):String

View in GitHub

staticinlinecharacter(character:String):String

View in GitHub

staticchart(song:String, difficulty:String = "normal"):String

View in GitHub

staticinlinedae(key:String):String

View in GitHub

staticinlinefile(file:String, ?library:String):String

View in GitHub

staticinlinefont(key:String):String

View in GitHub

staticinlinefragShader(key:String, ?library:String):String

View in GitHub

staticframesExists(key:String, checkAtlas:Bool = false, checkMulti:Bool = true, assetsPath:Bool = false, ?library:String):Bool

Checks if the images needed for using getFrames() exist.

Parameters:

key

Path to the image

checkAtlas

Whenever to check for the Animation.json file (used in FlxAnimate)

assetsPath

Whenever to use the raw path or to pass it through Paths.image()

library

(Additional) library to load the frames from.

Returns:

True if the images exist, false otherwise.

View in GitHub

staticinlinegetAsepriteAtlas(key:String, ?library:String):FlxAtlasFrames

View in GitHub

staticinlinegetAsepriteAtlasAlt(key:String):FlxAtlasFrames

View in GitHub

staticinlinegetAssetsRoot():String

View in GitHub

staticgetFolderContent(key:String, addPath:Bool = false, source:AssetSource = BOTH):Array<String>

View in GitHub

staticgetFolderDirectories(key:String, addPath:Bool = false, source:AssetSource = BOTH):Array<String>

View in GitHub

staticinlinegetFontName(font:String):String

Gets the name of a registered font.

Parameters:

font

The font's path (if it's already passed as a font name, the same name will be returned)

View in GitHub

staticgetFrames(key:String, assetsPath:Bool = false, ?library:String):Null<FlxFramesCollection>

Gets frames at specified path.

Parameters:

key

Path to the frames

library

(Additional) library to load the frames from.

View in GitHub

staticinlinegetPackerAtlas(key:String, ?library:String):FlxAtlasFrames

View in GitHub

staticinlinegetPackerAtlasAlt(key:String):FlxAtlasFrames

View in GitHub

staticinlinegetPath(file:String, ?library:String):String

View in GitHub

staticinlinegetSparrowAtlas(key:String, ?library:String):FlxAtlasFrames

View in GitHub

staticinlinegetSparrowAtlasAlt(key:String):FlxAtlasFrames

View in GitHub

staticimage(key:String, ?library:String, checkForAtlas:Bool = false, ext:String = "png"):String

View in GitHub

staticinlineini(key:String, ?library:String):String

View in GitHub

staticinit():Void

View in GitHub

staticinlineinst(song:String, difficulty:String = "normal", prefix:String = ""):String

View in GitHub

staticinlinejson(key:String, ?library:String):String

View in GitHub

staticinlinemd2(key:String):String

View in GitHub

staticinlinemd5(key:String):String

View in GitHub

staticinlinemusic(key:String, ?library:String):String

View in GitHub

staticinlinendll(key:String):String

View in GitHub

staticinlineobj(key:String):String

View in GitHub

staticinlinepack(key:String, ?library:String):String

View in GitHub

staticinlineps1(key:String, ?library:String):String

View in GitHub

staticinlinescript(key:String, ?library:String, isAssetsPath:Bool = false):String

View in GitHub

staticsound(key:String, ?library:String):String

View in GitHub

staticinlinesoundRandom(key:String, min:Int, max:Int, ?library:String):String

View in GitHub

staticinlinetxt(key:String, ?library:String):String

View in GitHub

staticinlinevertShader(key:String, ?library:String):String

View in GitHub

staticinlinevideo(key:String, ext:String = "mp4"):String

View in GitHub

staticinlinevoices(song:String, difficulty:String = "normal", prefix:String = ""):String

View in GitHub

staticinlinexml(key:String, ?library:String):String