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

    A RenderNode which handles transformation data for a single Tile within a TilemapLayer.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    The manager that owns this RenderNode.

    name: string

    The name of the RenderNode.

    quad: Float32Array

    The matrix used to store the final quad data for rendering.

    Methods

    • By default this is an empty method hook that you can override and use in your own custom render nodes.

      This method is called at the start of the run method. Don't forget to call it in your custom method.

      Parameters

      Returns void

    • By default this is an empty method hook that you can override and use in your own custom render nodes.

      This method is called at the end of the run method. Don't forget to call it in your custom method.

      Parameters

      Returns void

    • Stores the transform data for rendering.

      Parameters

      • drawingContext: DrawingContext

        The current drawing context.

      • gameObject: GameObject

        The GameObject being rendered.

      • texturerNode: RenderNode

        The texturer node used to texture the GameObject. This contains relevant data on the dimensions of the object.

      • OptionalparentMatrix: TransformMatrix

        This transform matrix is defined if the game object is nested.

      • Optionalelement: object

        The specific element within the game object. This is used for objects that consist of multiple quads. It is unused here.

      Returns void

    • Set whether the node should report debug information. It wraps the run method with additional debug information.

      Parameters

      • debug: boolean

        Whether to report debug information.

      Returns void