new FlexGrid(manager, width, height)
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.
FlexGrid is a a responsive grid manager that works in conjunction with the ScaleManager RESIZE scaling mode and FlexLayers to provide for game object positioning in a responsive manner.
Parameters:
Name | Type | Description |
---|---|---|
manager |
Phaser.ScaleManager | The ScaleManager. |
width |
number | The width of the game. |
height |
number | The height of the game. |
- Source:
Members
-
game
-
- Source:
Properties:
Name Type Description game
Phaser.Game A reference to the currently running Game.
-
manager
-
- Source:
Properties:
Name Type Description scale
Phaser.ScaleManager A reference to the ScaleManager.
-
<readonly> positionCustom
-
- Source:
Properties:
Name Type Description position
Phaser.Point -
-
<readonly> scaleCustom
-
- Source:
Properties:
Name Type Description scaleFactor
Phaser.Point The scale factor based on the game dimensions vs. the scaled dimensions.