From 373b97648d8c777e1b0378662c45d25e6e94a6ce Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Sun, 24 Nov 2013 23:52:31 +0000 Subject: [PATCH] Documentation updates --- build/phaser.d.ts | 13 ++++++++++--- src/gameobjects/Sprite.js | 4 ++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/build/phaser.d.ts b/build/phaser.d.ts index 43e150c0..847ec2bf 100644 --- a/build/phaser.d.ts +++ b/build/phaser.d.ts @@ -17,6 +17,9 @@ declare class Phaser { static TILEMAP: number; static TILEMAPLAYER: number; static EMITTER: number; + static BITMAPDATA: number; + static CANVAS_FILTER: number; + static WEBGL_FILTER: number; } declare module Phaser { @@ -31,11 +34,12 @@ declare module Phaser { height: number; view: Phaser.Rectangle; screenView: Phaser.Rectangle; + bounds: Phaser.Rectangle; deadzone: Phaser.Rectangle; visible: boolean; atLimit: { x: boolean; y: boolean; }; target: Phaser.Sprite; - _edge: number; + private _edge: number; static FOLLOW_LOCKON: number; static FOLLOW_PLATFORMER: number; static FOLLOW_TOPDOWN: number; @@ -54,19 +58,22 @@ declare module Phaser { camera: Phaser.Camera; cache: Phaser.Cache; input: Phaser.Input; + load: Phaser.Loader; stage: Phaser.Stage; math: Phaser.Math; sound: Phaser.SoundManager; + stage: Phaser.Stage; time: Phaser.Time; tweens: Phaser.TweenManager; world: Phaser.World; particles: Phaser.Particles; physics: Phaser.Physics.Arcade; - load: Phaser.Loader; preload(); + loadUpdate(); + loadRender(); create(); - render(); update(); + render(); paused(); destroy(); } diff --git a/src/gameobjects/Sprite.js b/src/gameobjects/Sprite.js index 260c0a8b..f559369f 100644 --- a/src/gameobjects/Sprite.js +++ b/src/gameobjects/Sprite.js @@ -74,7 +74,7 @@ Phaser.Sprite = function (game, x, y, key, frame) { this.lifespan = 0; /** - * @property {Events} events - The Events you can subscribe to that are dispatched when certain things happen on this Sprite or its components. + * @property {Phaser.Events} events - The Events you can subscribe to that are dispatched when certain things happen on this Sprite or its components. */ this.events = new Phaser.Events(this); @@ -84,7 +84,7 @@ Phaser.Sprite = function (game, x, y, key, frame) { this.animations = new Phaser.AnimationManager(this); /** - * @property {InputHandler} input - The Input Handler Component. + * @property {Phaser.InputHandler} input - The Input Handler Component. */ this.input = new Phaser.InputHandler(this);