TilemapLayer#damage

damage Damages the Game Object. This removes the given amount of health from the health property. If health is taken below or is equal to zero then the kill method is called. Inherited From Phaser.Component.Health#damage Source code: gameobjects/components/Health.js (Line 46)

TilemapLayer#cropRect

cropRect : Phaser.Rectangle The Rectangle used to crop the texture this Game Object uses.Set this property via crop.If you modify this property directly you must call updateCrop in order to have the change take effect. Inherited From Phaser.Component.Crop#cropRect Source code: gameobjects/components/Crop.js (Line 24)

TilemapLayer#crop()

crop(rect, copy) Crop allows you to crop the texture being used to display this Game Object.Setting a crop rectangle modifies the core texture frame. The Game Object width and height properties will be adjusted accordingly. Cropping takes place from the top-left and can be modified in real-time either by providing an updated rectangle object to this method,or by modifying cropRect property directly and then calling updateCrop. The rectangle object given to this method can be either a Phaser.R

TilemapLayer#contains()

contains(child) → {Boolean} Determines whether the specified display object is a child of the DisplayObjectContainer instance or the instance itself. Parameters Name Type Description child DisplayObject - Returns Boolean - Inherited From PIXI.DisplayObjectContainer#contains Source code: pixi/display/DisplayObjectContainer.js (Line 449)

TilemapLayer#children

[readonly] children : Array.<DisplayObject> [read-only] The array of children of this container. Type Array.<DisplayObject> Inherited From PIXI.DisplayObjectContainer#children Source code: pixi/display/DisplayObjectContainer.js (Line 17)

TilemapLayer#checkWorldBounds

checkWorldBounds : boolean If this is set to true the Game Object checks if it is within the World bounds each frame. When it is no longer intersecting the world bounds it dispatches the onOutOfBounds event. If it was previously out of bounds but is now intersecting the world bounds again it dispatches the onEnterBounds event. It also optionally kills the Game Object if outOfBoundsKill is true. When checkWorldBounds is enabled it forces the Game Object to calculate its full bounds every fram

TilemapLayer#centerY

centerY : number The center y coordinate of the Game Object.This is the same as (y - offsetY) + (height / 2). Inherited From Phaser.Component.Bounds#centerY Source code: gameobjects/components/Bounds.js (Line 80)

TilemapLayer#centerX

centerX : number The center x coordinate of the Game Object.This is the same as (x - offsetX) + (width / 2). Inherited From Phaser.Component.Bounds#centerX Source code: gameobjects/components/Bounds.js (Line 58)

TilemapLayer#cameraOffset

cameraOffset : Phaser.Point The x/y coordinate offset applied to the top-left of the camera that this Game Object will be drawn at if fixedToCamera is true. The values are relative to the top-left of the camera view and in addition to any parent of the Game Object on the display list. Inherited From Phaser.Component.FixedToCamera#cameraOffset Source code: gameobjects/components/FixedToCamera.js (Line 86)

TilemapLayer#bringToTop()

bringToTop() → {PIXI.DisplayObject} Brings this Game Object to the top of its parents display list.Visually this means it will render over the top of any old child in the same Group. If this Game Object hasn't been added to a custom Group then this method will bring it to the top of the Game World,because the World is the root Group from which all Game Objects descend. Returns PIXI.DisplayObject - This instance. Inherited From Phaser.Component.BringToTop#bringToTop Source code: gameo