new BitmapText(game, x, y, text, style)
Creates a new <code>BitmapText</code>.
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
-
- Default Value:
- true
- Source:
Properties:
Name Type Description aliveboolean This is a handy little var your game can use to determine if a sprite is alive or not, it doesn't effect rendering.
-
anchor
-
- Source:
Properties:
Name Type Description anchorPhaser.Point Description.
-
exists
-
- Default Value:
- true
- Source:
Properties:
Name Type Description existsboolean If exists = false then the Sprite isn't updated by the core game loop or physics subsystem at all.
-
game
-
- Source:
Properties:
Name Type Description gamePhaser.Game A reference to the currently running Game.
-
group
-
- Default Value:
- null
- Source:
Properties:
Name Type Description groupDescription Description.
-
name
-
- Source:
Properties:
Name Type Description namestring Description.
-
scale
-
- Source:
Properties:
Name Type Description scalePhaser.Point Description.
-
type
-
- Source:
Properties:
Name Type Description typeDescription Description.
Methods
-
update()
-
Automatically called by World.update
- Source: