mirror of
https://github.com/photonstorm/phaser
synced 2024-11-11 07:34:43 +00:00
Documentation updates
This commit is contained in:
parent
a876fdd2b6
commit
373b97648d
2 changed files with 12 additions and 5 deletions
13
build/phaser.d.ts
vendored
13
build/phaser.d.ts
vendored
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue