resize(width, height)
Resizes the internal canvas and texture frame used by this TilemapLayer.
This is an expensive call, so don't bind it to a window resize event! But instead call it at carefully
selected times.
Be aware that no validation of the new sizes takes place and the current map scroll coordinates are not
modified either. You will have to handle both of these things from your game code if required.
Parameters
Name | Type | Description |
---|---|---|
width | number | The new width of the TilemapLayer |
height | number | The new height of the TilemapLayer |
- Source code: tilemap/TilemapLayer.js (Line 364)
Please login to continue.