resize(width, height)
Updates the size of this world. Note that this doesn't modify the world x/y coordinates, just the width and height.
Parameters
Name | Type | Description |
---|---|---|
width | number | New width of the game world in pixels. |
height | number | New height of the game world in pixels. |
- Source code: core/World.js (Line 125)
Please login to continue.