phaser - v4.0.0-rc.4
    Preparing search index...

    Function PlaceOnRectangle

    • 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.

      Type Parameters

      Parameters

      • items: G

        An array of Game Objects. The contents of this array are updated by this Action.

      • rect: Geom.Rectangle

        The Rectangle to position the Game Objects on.

      • Optionalshift: number

        An optional positional offset. Default 0.

      Returns G