new LoaderParser()
Phaser.LoaderParser parses data objects from Phaser.Loader that need more preparation before they can be inserted into the Cache.
- Source code: loader/LoaderParser.js (Line 12)
Public Methods
-
<static> bitmapFont(xml, baseTexture, xSpacing, ySpacing) → {object}
-
Alias for xmlBitmapFont, for backwards compatibility.
Parameters
Name Type Argument Default Description xml
object XML data you want to parse.
baseTexture
PIXI.BaseTexture The BaseTexture this font uses.
xSpacing
number <optional>
0 Additional horizontal spacing between the characters.
ySpacing
number <optional>
0 Additional vertical spacing between the characters.
Returns
object -The parsed Bitmap Font data.
- Source code: 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 json
object JSON data you want to parse.
baseTexture
PIXI.BaseTexture The BaseTexture this font uses.
xSpacing
number <optional>
0 Additional horizontal spacing between the characters.
ySpacing
number <optional>
0 Additional vertical spacing between the characters.
Returns
object -The parsed Bitmap Font data.
- Source code: 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 xml
object XML data you want to parse.
baseTexture
PIXI.BaseTexture The BaseTexture this font uses.
xSpacing
number <optional>
0 Additional horizontal spacing between the characters.
ySpacing
number <optional>
0 Additional vertical spacing between the characters.
Returns
object -The parsed Bitmap Font data.
- Source code: loader/LoaderParser.js (Line 30)