new LoaderParser()
Phaser.LoaderParser parses data objects from Phaser.Loader that need more preparation before they can be inserted into the Cache.
- Source - loader/LoaderParser.js, line 12
Methods
-
<static> bitmapFont(xml, baseTexture, xSpacing, ySpacing) → {object}
-
Alias for xmlBitmapFont, for backwards compatibility.
Parameters:
Name Type Argument Default Description xmlobject XML data you want to parse.
baseTexturePIXI.BaseTexture The BaseTexture this font uses.
xSpacingnumber <optional>
0 Additional horizontal spacing between the characters.
ySpacingnumber <optional>
0 Additional vertical spacing between the characters.
Returns:
object -The parsed Bitmap Font data.
- Source - loader/LoaderParser.js, line 14
-
<static> jsonBitmapFont(json, baseTexture, xSpacing, ySpacing) → {object}
-
Parse a Bitmap Font from a JSON file.
Parameters:
Name Type Argument Default Description jsonobject JSON data you want to parse.
baseTexturePIXI.BaseTexture The BaseTexture this font uses.
xSpacingnumber <optional>
0 Additional horizontal spacing between the characters.
ySpacingnumber <optional>
0 Additional vertical spacing between the characters.
Returns:
object -The parsed Bitmap Font data.
- Source - loader/LoaderParser.js, line 84
-
<static> xmlBitmapFont(xml, baseTexture, xSpacing, ySpacing) → {object}
-
Parse a Bitmap Font from an XML file.
Parameters:
Name Type Argument Default Description xmlobject XML data you want to parse.
baseTexturePIXI.BaseTexture The BaseTexture this font uses.
xSpacingnumber <optional>
0 Additional horizontal spacing between the characters.
ySpacingnumber <optional>
0 Additional vertical spacing between the characters.
Returns:
object -The parsed Bitmap Font data.
- Source - loader/LoaderParser.js, line 30
