FlexLayer#FlexLayer

new FlexLayer(manager, position, bounds, scale)

WARNING: This is an EXPERIMENTAL class. The API will change significantly in the coming versions and is incomplete.
Please try to avoid using in production games with a long time to build.
This is also why the documentation is incomplete.

A responsive grid layer.

Parameters
Name Type Description
manager Phaser.FlexGrid

The FlexGrid that owns this FlexLayer.

position Phaser.Point

A reference to the Point object used for positioning.

bounds Phaser.Rectangle

A reference to the Rectangle used for the layer bounds.

scale Phaser.Point

A reference to the Point object used for layer scaling.

Source code: core/FlexLayer.js (Line 22)
doc_phaser
2017-02-14 10:46:51
Comments
Leave a Comment

Please login to continue.