Loader#headers

headers : Object Used to map the application mime-types to to the Accept header in XHR requests.If you don't require these mappings, or they cause problems on your server, thenremove them from the headers object and the XHR request will not try to use them. This object can also be used to set the X-Requested-With header toXMLHttpRequest (or any other value you need). To enable this do: this.load.headers.requestedWith = 'XMLHttpRequest' before adding anything to the Loader. The XHR loader will

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

Circle.circumferencePoint()

<static> circumferencePoint(a, angle, asDegrees, out) → {Phaser.Point} Returns a Point object containing the coordinates of a point on the circumference of the Circle based on the given angle. Parameters Name Type Argument Default Description a Phaser.Circle The first Circle object. angle number The angle in radians (unless asDegrees is true) to return the point from. asDegrees boolean <optional> false Is the given angle in radians (false) or degrees (true)? out

RandomDataGenerator#uuid()

uuid() → {string} Returns a valid RFC4122 version4 ID hex string from https://gist.github.com/1308368 Returns string - A valid RFC4122 version4 ID hex string Source code: math/RandomDataGenerator.js (Line 239)

Physics.P2#createBody()

createBody(x, y, mass, addToWorld, options, points) → {Phaser.Physics.P2.Body} Creates a new Body and adds it to the World. Parameters Name Type Argument Default Description x number The x coordinate of Body. y number The y coordinate of Body. mass number The mass of the Body. A mass of 0 means a 'static' Body is created. addToWorld boolean <optional> false Automatically add this Body to the world? (usually false as it won't have any shapes on construction). opti

Physics.P2.BodyDebug#getAll()

getAll(property, value, startIndex, endIndex) → {any} Returns all children in this Group. You can optionally specify a matching criteria using the property and value arguments. For example: getAll('exists', true) would return only children that have their exists property set. Optionally you can specify a start and end index. For example if this Group had 100 children,and you set startIndex to 0 and endIndex to 50, it would return a random child from onlythe first 50 children in the Group. Pa

Circle#setTo()

setTo(x, y, diameter) → {Circle} Sets the members of Circle to the specified values. Parameters Name Type Description x number The x coordinate of the center of the circle. y number The y coordinate of the center of the circle. diameter number The diameter of the circle. Returns Circle - This circle object. Source code: geom/Circle.js (Line 109)

BitmapData#rect()

rect(x, y, width, height, fillStyle) → {Phaser.BitmapData} Draws a filled Rectangle to the BitmapData at the given x, y coordinates and width / height in size. Parameters Name Type Argument Description x number The x coordinate of the top-left of the Rectangle. y number The y coordinate of the top-left of the Rectangle. width number The width of the Rectangle. height number The height of the Rectangle. fillStyle string <optional> If set the context fillStyle will be

Loader#getAsset()

getAsset(type, key) → {any} Find a file/asset with a specific key. Only assets in the download file queue will be found. Parameters Name Type Description type string The type asset you want to check. key string Key of the asset you want to check. Returns any - Returns an object if found that has 2 properties: index and file; otherwise a non-true value is returned. The index may change and should only be used immediately following this call. Source code: loader/Loader.js (Line 441

Matrix#rotate()

rotate(angle) → {Phaser.Matrix} Applies a rotation transformation to this matrix. Parameters Name Type Description angle number The angle to rotate by, given in radians. Returns Phaser.Matrix - This Matrix object. Source code: geom/Matrix.js (Line 318)