Utils.Debug#text()

text(text, x, y, color, font)

Render a string of text.

Parameters
Name Type Argument Description
text string

The line of text to draw.

x number

X position of the debug info to be rendered.

y number

Y position of the debug info to be rendered.

color string <optional>

Color of the debug info to be rendered (format is css color string).

font string <optional>

The font of text to draw.

Source code: utils/Debug.js (Line 676)
doc_phaser
2017-02-14 11:19:16
Comments
Leave a Comment

Please login to continue.