BGE/SpriteAtlases
Alias: BGE.SpriteAtlases
Static Methods
sheetBitmapName(atlasName: string, index: integer): string
static
The bitmap name of an atlas's sheet.
Parameters
atlasName(string)index(integer)
Returns
string
findProblem(parsed: dynamic): string
static
Why parsed atlas JSON isn't a sprite atlas, or "" if it is.
Parameters
parsed(dynamic) — what ParseJson() returned
Returns
string
create(
atlasName: string,
source: string,
parsed: roAssociativeArray,
): BGE.SpriteAtlas
static
Builds an atlas from JSON that findProblem() accepted.
Parameters
atlasName(string) — the name to load it undersource(string) — the.jsonpath or URL, which sheet files are relative toparsed(roAssociativeArray)
Returns
resolveSheetPath(source: string, sheetFile: string): string
static
A sheet file named in an atlas, as a path or URL: relative to the .json, unless it's a URL or a path with its own volume (e.g. pkg:/).
Parameters
source(string) — the.jsonpath or URLsheetFile(string)
Returns
string
isNumber(value: dynamic): boolean
static
Whether a parsed JSON value is a number.
Parameters
value(dynamic)
Returns
boolean
isString(value: dynamic): boolean
static
Whether a parsed JSON value is a string.
Parameters
value(dynamic)
Returns
boolean