BitmapText#destroy()

destroy(destroyChildren, destroyTexture) Destroys the Game Object. This removes it from its parent group, destroys the input, event and animation handlers if presentand nulls its reference to game, freeing it up for garbage collection. If this Game Object has the Events component it will also dispatch the onDestroy event. You can optionally also destroy the BaseTexture this Game Object is using. Be careful if you'vemore than one Game Object sharing the same BaseTexture. Parameters Name Type

BitmapText#debug

debug : boolean A debug flag designed for use with Game.enableStep. Inherited From Phaser.Component.Core#debug Source code: gameobjects/components/Core.js (Line 218)

BitmapText#data

data : Object An empty Object that belongs to this Game Object.This value isn't ever used internally by Phaser, but may be used by your own code, orby Phaser Plugins, to store data that needs to be associated with the Game Object,without polluting the Game Object directly. Inherited From Phaser.Component.Core#data Default Value {} Source code: gameobjects/components/Core.js (Line 160)

BitmapText#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)

BitmapText#cleanText()

cleanText(text, replace) → {string} Given a text string this will scan each character in the string to ensure it existsin the BitmapText font data. If it doesn't the character is removed, or replaced with the replace argument. If no font data has been loaded at all this returns an empty string, as nothing can be rendered. Parameters Name Type Argument Default Description text string The text to parse. replace string <optional> '' The replacement string for any missing charac

BitmapText#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)

BitmapText#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

BitmapText#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)

BitmapText#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)

BitmapText#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)