phaser/Phaser/Statics.ts
2013-05-28 21:38:37 +01:00

29 lines
813 B
TypeScript

module Phaser {
/**
* Constants used to define game object types (faster than doing typeof object checks in core loops)
*/
export class Types {
static RENDERER_AUTO_DETECT: number = 0;
static RENDERER_HEADLESS: number = 1;
static RENDERER_CANVAS: number = 2;
static RENDERER_WEBGL: number = 3;
static GROUP: number = 0;
static SPRITE: number = 1;
static GEOMSPRITE: number = 2;
static PARTICLE: number = 3;
static EMITTER: number = 4;
static TILEMAP: number = 5;
static SCROLLZONE: number = 6;
static GEOM_POINT: number = 0;
static GEOM_CIRCLE: number = 1;
static GEOM_RECTANGLE: number = 2;
static GEOM_LINE: number = 3;
static GEOM_POLYGON: number = 4;
}
}