Skip to content

Commit

Permalink
Documentation updates
Browse files Browse the repository at this point in the history
  • Loading branch information
photonstorm committed Nov 24, 2013
1 parent a876fdd commit 373b976
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
13 changes: 10 additions & 3 deletions build/phaser.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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;
Expand All @@ -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();
}
Expand Down
4 changes: 2 additions & 2 deletions src/gameobjects/Sprite.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand Down

0 comments on commit 373b976

Please sign in to comment.