TilemapLayer#resizeFrame()

resizeFrame(parent, width, height)

Resizes the Frame dimensions that the Game Object uses for rendering.

You shouldn't normally need to ever call this, but in the case of special texture types such as Video or BitmapData
it can be useful to adjust the dimensions directly in this way.

Parameters
Name Type Description
parent object

The parent texture object that caused the resize, i.e. a Phaser.Video object.

width integer

The new width of the texture.

height integer

The new height of the texture.

Inherited From
Source code: gameobjects/components/LoadTexture.js (Line 220)
doc_phaser
2017-02-14 11:16:30
Comments
Leave a Comment

Please login to continue.