Skip to content

Phaser.TilemapLayer does not resize when the game world is resized #1881

@hilts-vaughan

Description

@hilts-vaughan

It creates an internal Canvas inside which still has the old renderWidth and renderHeight on the this._mc which causes it not render the difference (bigger, if you start small and resize up). This has the disadvantage of setting the game size not drawing more tilemaplayer's. This includes the canvas width and height. i.e: the game size.

How can I get the tilemap layer to respond? I'm OK with manually letting them know they need to render more. Destroying and recreating them is one option but if the operation is expensive, it's not viable on a window resize.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions