GameObjectFactory#graphics()

graphics(x, y, group) → {Phaser.Graphics}

Creates a new Graphics object.

Parameters
Name Type Argument Default Description
x number <optional>
0

The x coordinate of the Graphic. The coordinate is relative to any parent container this object may be in.

y number <optional>
0

The y coordinate of the Graphic. The coordinate is relative to any parent container this object may be in.

group Phaser.Group <optional>

Optional Group to add the object to. If not specified it will be added to the World group.

Returns

The newly created graphics object.

Source code: gameobjects/GameObjectFactory.js (Line 361)
doc_phaser
2017-02-14 10:48:42
Comments
Leave a Comment

Please login to continue.