Class: Text

Phaser. Text

Phaser.Text

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

Create a new <code>Text</code>.

Parameters:
Name Type Description
game Phaser.Game

Current game instance.

x number

X position of the new text object.

y number

Y position of the new text object.

text string

The actual text that will be written.

style object

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

Source:

Members

alive

Properties:
Name Type Description
alive boolean

Description.

Default Value:
  • true
Source:

anchor

Properties:
Name Type Description
anchor Phaser.Point

Description.

Source:

exists

Properties:
Name Type Description
exists boolean

Description.

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:

renderable

Properties:
Name Type Description
renderable boolean

Description.

Source:

scale

Properties:
Name Type Description
scale Phaser.Point

Description.

Source:

type

Properties:
Name Type Description
type Description

Description.

Source:

Methods

destroy()

Source:

destroy()

Source:

update()

Automatically called by World.update.

Source:
Phaser Copyright © 2012-2013 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.0-dev on Fri Nov 01 2013 18:16:15 GMT-0000 (GMT) using the DocStrap template.