centerOn(x, y) → {Phaser.Rectangle}
Centers this Rectangle so that the center coordinates match the given x and y values.
Parameters
Name | Type | Description |
---|---|---|
x | number | The x coordinate to place the center of the Rectangle at. |
y | number | The y coordinate to place the center of the Rectangle at. |
Returns
This Rectangle object
- Source code: geom/Rectangle.js (Line 122)
Please login to continue.