Merge branch 'origin/dev'

This commit is contained in:
photonstorm 2014-02-09 19:59:03 +00:00
commit 9ee5cdaded
2 changed files with 7 additions and 6 deletions

7
build/phaser.d.ts vendored
View file

@ -845,6 +845,7 @@ declare module Phaser {
visible: boolean;
renderable: boolean;
width: number;
height: number;
health: number;
damage(amount: number): Phaser.Sprite;
}
@ -1645,9 +1646,9 @@ declare module Phaser {
tilemap(key: string, tilesetURL: string, mapDataURL?: string, mapData?: Object, format?: string): void;
tileset(key: string, url: string, tileWidth: number, tileHeight: number, tileMargin?: number, tileSpacing?: number, rows?: number, columns?: number, limit?: number): void;
bitmapFont(key: string, textureURL: string, xmlURL?: string, xmlData?: Object): void;
atlasJSONArray(key: string, textureURL: string, atlasURL: string, atlasData: Object): void;
atlasJSONHash(key: string, textureURL: string, atlasURL: string, atlasData: Object): void;
atlasXML(key: string, textureURL: string, atlasURL: string, atlasData: Object): void;
atlasJSONArray(key: string, textureURL: string, atlasURL?: string, atlasData?: Object): void;
atlasJSONHash(key: string, textureURL: string, atlasURL?: string, atlasData?: Object): void;
atlasXML(key: string, textureURL: string, atlasURL?: string, atlasData?: Object): void;
atlas(key: string, textureURL: string, atlasURL?: string, atlasData?: Object, format?: number): void;
removeFile(key: string): void;
removeAll(): void;

View file

@ -38,9 +38,9 @@ Phaser.Utils = {
* dir = 1 (left), 2 (right), 3 (both)
* @method Phaser.Utils.pad
* @param {string} str - The target string.
* @param {number} len - Description.
* @param {number} pad - the string to pad it out with (defaults to a space).
* @param {number} [dir=3] the direction dir = 1 (left), 2 (right), 3 (both).
* @param {number} len - The number of characters to be added.
* @param {number} pad - The string to pad it out with (defaults to a space).
* @param {number} [dir=3] The direction dir = 1 (left), 2 (right), 3 (both).
* @return {string} The padded string
*/
pad: function (str, len, pad, dir) {