Class: BitmapText

Phaser. BitmapText

Phaser.BitmapText

new BitmapText(game, x, y, text, style)

Creates a new BitmapText object. BitmapText work by taking a texture file and an XML file that describes the font layout. On Windows you can use the free app BMFont: http://www.angelcode.com/products/bmfont/ On OS X we recommend Glyph Designer: http://www.71squared.com/en/glyphdesigner

Parameters:
Name Type Description
game Phaser.Game

A reference to the currently running game.

x number

X position of the new bitmapText object.

y number

Y position of the new bitmapText object.

text string

The actual text that will be written.

style object

The style object containing style attributes like font, font size , etc.

Source:

Members

alive

Properties:
Name Type Description
alive boolean

This is a handy little var your game can use to determine if a sprite is alive or not, it doesn't effect rendering.

Default Value:
  • true
Source:

anchor

Properties:
Name Type Description
anchor Phaser.Point

Description.

Source:

exists

Properties:
Name Type Description
exists boolean

If exists = false then the Sprite isn't updated by the core game loop or physics subsystem at all.

Default Value:
  • true
Source:

game

Properties:
Name Type Description
game Phaser.Game

A reference to the currently running Game.

Source:

group

Properties:
Name Type Description
group Description

Description.

Default Value:
  • null
Source:

name

Properties:
Name Type Description
name string

Description.

Source:

scale

Properties:
Name Type Description
scale Phaser.Point

Description.

Source:

type

Properties:
Name Type Description
type Description

Description.

Source:

Methods

update()

Automatically called by World.update

Source:
Phaser Copyright © 2012-2013 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.0-dev on Thu Nov 07 2013 06:07:34 GMT-0000 (GMT) using the DocStrap template.