Mouse#onMouseDown()

onMouseDown(event) The internal method that handles the mouse down event from the browser. Parameters Name Type Description event MouseEvent The native event from the browser. This gets stored in Mouse.event. Source code: input/Mouse.js (Line 296)

Animation#enableUpdate

enableUpdate : boolean Gets or sets if this animation will dispatch the onUpdate events upon changing frame. Source code: animation/Animation.js (Line 800)

Easing.Sinusoidal#In()

In(k) → {number} Sinusoidal ease-in. Parameters Name Type Description k number The value to be tweened. Returns number - The tweened value. Source code: tween/Easing.js (Line 241)

Color.fromRGBA()

<static> fromRGBA(rgba, out) → {object} A utility to convert an integer in 0xRRGGBBAA format to a color object.This does not rely on endianness. Parameters Name Type Argument Description rgba number An RGBA hex out object <optional> The object to use, optional. Returns object - A color object. Author: Matt DesLauriers (@mattdesl) Source code: utils/Color.js (Line 97)

InputHandler#sprite

sprite : Phaser.Sprite The Sprite object to which this Input Handler belongs. Source code: input/InputHandler.js (Line 19)

ScaleManager#setResizeCallback()

setResizeCallback(callback, context) Sets the callback that will be invoked before sizing calculations. This is the appropriate place to call setUserScale if needing custom dynamic scaling. The callback is supplied with two arguments scale and parentBounds where scale is the ScaleManagerand parentBounds, a Phaser.Rectangle, is the size of the Parent element. This callback May be invoked even though the parent container or canvas sizes have not changed Unlike onSizeChange, it runs before the c

FlexLayer#bottomLeft

bottomLeft : Phaser.Point Source code: core/FlexLayer.js (Line 76)

Physics.P2.Body#setRectangle()

setRectangle(width, height, offsetX, offsetY, rotation) → {p2.Rectangle} Clears any previously set shapes. The creates a new Rectangle shape at the given size and offset, and adds it to this Body.If you wish to create a Rectangle to match the size of a Sprite or Image see Body.setRectangleFromSprite.If this Body had a previously set Collision Group you will need to re-apply it to the new Shape this creates. Parameters Name Type Argument Default Description width number <optional> 1

Image#pendingDestroy

pendingDestroy : boolean A Game Object is that is pendingDestroy is flagged to have its destroy method called on the next logic update.You can set it directly to allow you to flag an object to be destroyed on its next update. This is extremely useful if you wish to destroy an object from within one of its own callbackssuch as with Buttons or other Input events. Inherited From Phaser.Component.Core#pendingDestroy Source code: gameobjects/components/Core.js (Line 259)

DOM.getAspectRatio()

<static> getAspectRatio(object) → {number} Get the Visual viewport aspect ratio (or the aspect ratio of an object or element) Parameters Name Type Argument Default Description object DOMElement | Object <optional> (visualViewport) The object to determine the aspect ratio for. Must have public width and height properties or methods. Returns number - The aspect ratio. Source code: utils/DOM.js (Line 100)