Class: Utils

Phaser. Utils

new Utils()

Source:

Classes

Debug

Methods

<static> extend() → {object}

This is a slightly modified version of http://api.jquery.com/jQuery.extend/

Source:
Returns:

The extended object.

Type
object

<static> isPlainObject(obj) → {boolean}

This is a slightly modified version of jQuery.isPlainObject. A plain object is an object whose internal class property is [object Object].

Parameters:
Name Type Description
obj object

The object to inspect.

Source:
Returns:
  • true if the object is plain, otherwise false.
Type
boolean

<static> pad(str, len, pad, dir) → {string}

Javascript string pad http://www.webtoolkit.info/. pad = the string to pad it out with (defaults to a space)<br> dir = 1 (left), 2 (right), 3 (both)

Parameters:
Name Type Argument Default Description
str string

The target string.

len number

Description.

pad number

the string to pad it out with (defaults to a space).

dir number <optional>
3

the direction dir = 1 (left), 2 (right), 3 (both).

Source:
Returns:
Type
string
Phaser Copyright © 2012-2013 Photon Storm Ltd.
Documentation generated by JSDoc 3.2.0-dev on Thu Oct 03 2013 02:35:50 GMT+0100 (BST) using the DocStrap template.