Takes an array of Game Objects and positions them on evenly spaced points around the perimeter of a Rectangle.
Placement starts from the top-left of the rectangle, and proceeds in a clockwise direction.
If the shift
parameter is given you can offset where placement begins.
name | type | arguments | description |
---|---|---|---|
items | array | Array.<Phaser.GameObjects.GameObject> |
An array of Game Objects. The contents of this array are updated by this Action. |
|
rect | Phaser.Geom.Rectangle |
The Rectangle to position the Game Objects on. |
|
shift | number | <optional> |
An optional positional offset. |
The array of Game Objects that was passed to this Action.