Skip to content

Commit 373b976

Browse files
committed
Documentation updates
1 parent a876fdd commit 373b976

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

build/phaser.d.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ declare class Phaser {
1717
static TILEMAP: number;
1818
static TILEMAPLAYER: number;
1919
static EMITTER: number;
20+
static BITMAPDATA: number;
21+
static CANVAS_FILTER: number;
22+
static WEBGL_FILTER: number;
2023
}
2124

2225
declare module Phaser {
@@ -31,11 +34,12 @@ declare module Phaser {
3134
height: number;
3235
view: Phaser.Rectangle;
3336
screenView: Phaser.Rectangle;
37+
bounds: Phaser.Rectangle;
3438
deadzone: Phaser.Rectangle;
3539
visible: boolean;
3640
atLimit: { x: boolean; y: boolean; };
3741
target: Phaser.Sprite;
38-
_edge: number;
42+
private _edge: number;
3943
static FOLLOW_LOCKON: number;
4044
static FOLLOW_PLATFORMER: number;
4145
static FOLLOW_TOPDOWN: number;
@@ -54,19 +58,22 @@ declare module Phaser {
5458
camera: Phaser.Camera;
5559
cache: Phaser.Cache;
5660
input: Phaser.Input;
61+
load: Phaser.Loader;
5762
stage: Phaser.Stage;
5863
math: Phaser.Math;
5964
sound: Phaser.SoundManager;
65+
stage: Phaser.Stage;
6066
time: Phaser.Time;
6167
tweens: Phaser.TweenManager;
6268
world: Phaser.World;
6369
particles: Phaser.Particles;
6470
physics: Phaser.Physics.Arcade;
65-
load: Phaser.Loader;
6671
preload();
72+
loadUpdate();
73+
loadRender();
6774
create();
68-
render();
6975
update();
76+
render();
7077
paused();
7178
destroy();
7279
}

src/gameobjects/Sprite.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Phaser.Sprite = function (game, x, y, key, frame) {
7474
this.lifespan = 0;
7575

7676
/**
77-
* @property {Events} events - The Events you can subscribe to that are dispatched when certain things happen on this Sprite or its components.
77+
* @property {Phaser.Events} events - The Events you can subscribe to that are dispatched when certain things happen on this Sprite or its components.
7878
*/
7979
this.events = new Phaser.Events(this);
8080

@@ -84,7 +84,7 @@ Phaser.Sprite = function (game, x, y, key, frame) {
8484
this.animations = new Phaser.AnimationManager(this);
8585

8686
/**
87-
* @property {InputHandler} input - The Input Handler Component.
87+
* @property {Phaser.InputHandler} input - The Input Handler Component.
8888
*/
8989
this.input = new Phaser.InputHandler(this);
9090

0 commit comments

Comments
 (0)