diff --git a/build/phaser.d.ts b/build/phaser.d.ts index ff10a516..fb4991ce 100644 --- a/build/phaser.d.ts +++ b/build/phaser.d.ts @@ -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; diff --git a/src/utils/Utils.js b/src/utils/Utils.js index f1c489d7..152ca34b 100644 --- a/src/utils/Utils.js +++ b/src/utils/Utils.js @@ -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) {