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(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 - 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 - 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 - loader/LoaderParser.js, line 30
Phaser Copyright © 2012-2015 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.2 on Thu Feb 18 2016 14:41:03 GMT+0000 (GMT Standard Time) using the DocStrap template.

快捷菜单

注意:只有登录才能全文翻译,每个新用户赠送300会员币。
赚取方法:文章评论+1000,分享网站截图给站长+3000,另充10元+100万会员币
支持一下记得截图给站长!

VIP限时免费阅读!登录可得1万币尽情中文阅读!


记得CTRL+D收藏!
站长微信:
支持自学php网
如有问题,记得强刷一下.

  • bitmapFont(xml, baseTexture, xSpacing, ySpacing) → {object} - 方法
  • jsonBitmapFont(json, baseTexture, xSpacing, ySpacing) → {object} - 方法
  • xmlBitmapFont(xml, baseTexture, xSpacing, ySpacing) → {object} - 方法