Skip to main content
Version: Phaser v3.90.0

Types.GameObjects.Plane

PlaneCheckerboardConfig

<static> PlaneCheckerboardConfig

nametypeoptionaldefaultdescription
color1numberYes"0xffffff"The odd cell color, specified as a hex value.
color2numberYes"0x0000ff"The even cell color, specified as a hex value.
alpha1numberYes255The odd cell alpha value, specified as a number between 0 and 255.
alpha2numberYes255The even cell alpha value, specified as a number between 0 and 255.
heightnumberYes128The view height of the Plane after creation, in pixels.

Type: object

Member of: Phaser.Types.GameObjects.Plane

Source: src/gameobjects/plane/typedefs/PlaneCheckerboardConfig.js#L1
Since: 3.60.0


PlaneConfig

<static> PlaneConfig

nametypeoptionaldefaultdescription
keystring | Phaser.Textures.TextureYesThe key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.
framestring | numberYesAn optional frame from the Texture this Game Object is rendering with.
widthnumberYes8The width of this Plane, in cells, not pixels.
heightnumberYes8The height of this Plane, in cells, not pixels.
tilebooleanYesfalseIs the texture tiled? I.e. repeated across each cell.
checkerboardPhaser.Types.GameObjects.Plane.PlaneCheckerboardConfigYesPlane checkerboard configuration object.

Type: object

Member of: Phaser.Types.GameObjects.Plane

Source: src/gameobjects/plane/typedefs/PlaneConfig.js#L1
Since: 3.60.0