Utils.Debug#spriteInfo()

spriteInfo(sprite, x, y, color)

Render debug infos (including name, bounds info, position and some other properties) about the Sprite.

Parameters
Name Type Argument Default Description
sprite Phaser.Sprite

The Sprite to display the information of.

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>
'rgb(255,255,255)'

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

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

Please login to continue.