• Create a container object. Container is able to contain any other game object, and the positions of contained game object will be relative to the container.

    Rendering the container as visible or invisible will also affect the contained game object.

    Container can also contain another container.

    0, 0 is located at the top, left hand side.

    For more details about container object, see: https://photonstorm.github.io/phaser3-docs/Phaser.GameObjects.Container.html

    Parameters

    • x: number

      x position of the container

    • y: number

      y position of the container

    Returns GameObject

    container object