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

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

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

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

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

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

Bullet#Bullet

new Bullet(game, x, y, key, frame) Create a new Bullet object. Bullets are used by the Phaser.Weapon class, and are normal Sprites,with a few extra properties in the data object to handle Weapon specific features. Parameters Name Type Description game Phaser.Game A reference to the currently running game. x number The x coordinate (in world space) to position the Particle at. y number The y coordinate (in world space) to position the Particle at. key string | Phaser.RenderTexture | Ph

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

Bullet#bottom

bottom : number The sum of the y and height properties.This is the same as y + height - offsetY. Inherited From Phaser.Component.Bounds#bottom Source code: gameobjects/components/Bounds.js (Line 168)

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