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 - core/FlexGrid.js, line 21
Members
-
game :Phaser.Game
-
A reference to the currently running Game.
- Source - core/FlexGrid.js, line 26
-
manager
-
- Source - core/FlexGrid.js, line 31
Properties:
Name Type Description scale
Phaser.ScaleManager A reference to the ScaleManager.
-
<readonly> positionCustom
-
- Source - core/FlexGrid.js, line 46
Properties:
Name Type Description position
Phaser.Point -
-
<readonly> scaleCustom
-
- Source - core/FlexGrid.js, line 55
Properties:
Name Type Description scaleFactor
Phaser.Point The scale factor based on the game dimensions vs. the scaled dimensions.