Phaser. LoaderParser

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(game, xml, cacheKey, xSpacing, ySpacing)

Parse a Bitmap Font from an XML file.

Parameters:
Name Type Argument Default Description
game Phaser.Game

A reference to the current game.

xml object

XML data you want to parse.

cacheKey string

The key of the texture this font uses in the cache.

xSpacing number <optional>
0

Additional horizontal spacing between the characters.

ySpacing number <optional>
0

Additional vertical spacing between the characters.

Source - loader/LoaderParser.js, line 14
Phaser Copyright © 2012-2015 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.0-alpha10 on Thu Mar 26 2015 02:53:53 GMT+0000 (GMT Standard Time) using the DocStrap template.