Particle#alignTo()

alignTo(parent, position, offsetX, offsetY) → {Object} Aligns this Game Object to the side of another Game Object, or Rectangle, known as the'parent', in one of 11 possible positions. The parent must be a Game Object, or Phaser.Rectangle object. This can include propertiessuch as World.bounds or Camera.view, for aligning Game Objects within the worldand camera bounds. Or it can include other Sprites, Images, Text objects, BitmapText,TileSprites or Buttons. Please note that aligning a Sprite t

Particle#alignIn()

alignIn(container, position, offsetX, offsetY) → {Object} Aligns this Game Object within another Game Object, or Rectangle, known as the'container', to one of 9 possible positions. The container must be a Game Object, or Phaser.Rectangle object. This can include propertiessuch as World.bounds or Camera.view, for aligning Game Objects within the worldand camera bounds. Or it can include other Sprites, Images, Text objects, BitmapText,TileSprites or Buttons. Please note that aligning a Sprite t

Particle#addChildAt()

addChildAt(child, index) → {DisplayObject} Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown Parameters Name Type Description child DisplayObject The child to add index Number The index to place the child in Returns DisplayObject - The child that was added. Inherited From PIXI.DisplayObjectContainer#addChildAt Source code: pixi/display/DisplayObjectContainer.js (Line 55)

Particle#addChild()

addChild(child) → {DisplayObject} Adds a child to the container. Parameters Name Type Description child DisplayObject The DisplayObject to add to the container Returns DisplayObject - The child that was added. Inherited From PIXI.DisplayObjectContainer#addChild Source code: pixi/display/DisplayObjectContainer.js (Line 42)

Net#updateQueryString()

updateQueryString(key, value, redirect, url) → {string} Updates a value on the Query String and returns it in full.If the value doesn't already exist it is set.If the value exists it is replaced with the new value given. If you don't provide a new value it is removed from the query string.Optionally you can redirect to the new url, or just return it as a string. Parameters Name Type Description key string The querystring key to update. value string The new value to be set. If it already

Net#Net

new Net(game) Phaser.Net handles browser URL related tasks such as checking host names, domain names and query string manipulation. Parameters Name Type Description game Phaser.Game A reference to the currently running game. Source code: net/Net.js (Line 14)

Net#getQueryString()

getQueryString(parameter) → {string | object} Returns the Query String as an object.If you specify a parameter it will return just the value of that parameter, should it exist. Parameters Name Type Argument Default Description parameter string <optional> '' If specified this will return just the value for that key. Returns string | object - An object containing the key value pairs found in the query string or just the value if a parameter was given. Source code: net/Net.js

Net#getHostName()

getHostName() → {string} Returns the hostname given by the browser. Returns string - Source code: net/Net.js (Line 22)

Net#decodeURI()

decodeURI(value) → {string} Takes a Uniform Resource Identifier (URI) component (previously created by encodeURIComponent or by a similar routine) anddecodes it, replacing \ with spaces in the return. Used internally by the Net classes. Parameters Name Type Description value string The URI component to be decoded. Returns string - The decoded value. Source code: net/Net.js (Line 152)

Net#checkDomainName()

checkDomainName(domain) → {boolean} Compares the given domain name against the hostname of the browser containing the game.If the domain name is found it returns true.You can specify a part of a domain, for example 'google' would match 'google.com', 'google.co.uk', etc.Do not include 'http://' at the start. Parameters Name Type Description domain string Returns boolean - true if the given domain fragment can be found in the window.location.hostname Source code: net/Net.js (Line 38