GameObjectCreator#text()

text(x, y, text, style) → {Phaser.Text}

Creates a new Text object.

Parameters
Name Type Description
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 , etc.

Returns

The newly created text object.

Source code: gameobjects/GameObjectCreator.js (Line 199)
doc_phaser
2017-02-14 10:48:35
Comments
Leave a Comment

Please login to continue.