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
-
- Default Value:
- true
- Source:
Properties:
Name Type Description alive
boolean Description.
-
anchor
-
- Source:
Properties:
Name Type Description anchor
Phaser.Point Description.
-
exists
-
- Default Value:
- true
- Source:
Properties:
Name Type Description exists
boolean Description.
-
game
-
- Source:
Properties:
Name Type Description game
Phaser.Game A reference to the currently running game.
-
group
-
- Default Value:
- null
- Source:
Properties:
Name Type Description group
Description Description.
-
name
-
- Source:
Properties:
Name Type Description name
string Description.
-
renderable
-
- Source:
Properties:
Name Type Description renderable
boolean Description.
-
scale
-
- Source:
Properties:
Name Type Description scale
Phaser.Point Description.
-
type
-
- Source:
Properties:
Name Type Description type
Description Description.
Methods
-
destroy()
-
- Source:
-
destroy()
-
- Source:
-
update()
-
Automatically called by World.update.
- Source: