2014-03-23 08:43:27 +00:00
|
|
|
/* global Phaser:true */
|
2013-10-01 12:54:29 +00:00
|
|
|
/**
|
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
2015-02-25 03:36:23 +00:00
|
|
|
* @copyright 2015 Photon Storm Ltd.
|
2013-10-01 12:54:29 +00:00
|
|
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
|
|
|
*/
|
|
|
|
|
2013-08-28 06:02:55 +00:00
|
|
|
/**
|
2013-10-03 01:38:35 +00:00
|
|
|
* @namespace Phaser
|
|
|
|
*/
|
2013-10-23 12:15:56 +00:00
|
|
|
var Phaser = Phaser || {
|
2013-08-29 06:06:16 +00:00
|
|
|
|
2015-04-15 00:37:41 +00:00
|
|
|
VERSION: '2.4.0-dev',
|
2013-10-23 12:15:56 +00:00
|
|
|
GAMES: [],
|
2013-11-25 14:53:30 +00:00
|
|
|
|
2014-03-23 08:43:27 +00:00
|
|
|
AUTO: 0,
|
|
|
|
CANVAS: 1,
|
|
|
|
WEBGL: 2,
|
|
|
|
HEADLESS: 3,
|
2013-09-12 20:54:41 +00:00
|
|
|
|
2014-03-23 08:43:27 +00:00
|
|
|
NONE: 0,
|
|
|
|
LEFT: 1,
|
|
|
|
RIGHT: 2,
|
|
|
|
UP: 3,
|
|
|
|
DOWN: 4,
|
2014-03-13 23:15:32 +00:00
|
|
|
|
2014-03-23 08:43:27 +00:00
|
|
|
SPRITE: 0,
|
|
|
|
BUTTON: 1,
|
|
|
|
IMAGE: 2,
|
|
|
|
GRAPHICS: 3,
|
|
|
|
TEXT: 4,
|
|
|
|
TILESPRITE: 5,
|
|
|
|
BITMAPTEXT: 6,
|
|
|
|
GROUP: 7,
|
|
|
|
RENDERTEXTURE: 8,
|
|
|
|
TILEMAP: 9,
|
|
|
|
TILEMAPLAYER: 10,
|
|
|
|
EMITTER: 11,
|
|
|
|
POLYGON: 12,
|
|
|
|
BITMAPDATA: 13,
|
|
|
|
CANVAS_FILTER: 14,
|
|
|
|
WEBGL_FILTER: 15,
|
|
|
|
ELLIPSE: 16,
|
|
|
|
SPRITEBATCH: 17,
|
|
|
|
RETROFONT: 18,
|
2014-05-06 01:45:10 +00:00
|
|
|
POINTER: 19,
|
2014-07-15 16:40:40 +00:00
|
|
|
ROPE: 20,
|
2015-02-17 16:39:49 +00:00
|
|
|
CIRCLE: 21,
|
|
|
|
RECTANGLE: 22,
|
|
|
|
LINE: 23,
|
|
|
|
MATRIX: 24,
|
|
|
|
POINT: 25,
|
|
|
|
ROUNDEDRECTANGLE: 26,
|
2015-04-13 22:16:29 +00:00
|
|
|
CREATURE: 27,
|
2015-05-03 12:26:46 +00:00
|
|
|
VIDEO: 28,
|
2013-09-23 21:23:17 +00:00
|
|
|
|
2015-02-17 15:47:50 +00:00
|
|
|
/**
|
2015-06-03 03:54:49 +00:00
|
|
|
* Various blend modes supported by Pixi.
|
|
|
|
* IMPORTANT: The WebGL renderer only supports the NORMAL, ADD, MULTIPLY and SCREEN blend modes.
|
2015-02-17 15:47:50 +00:00
|
|
|
*
|
|
|
|
* @property {Object} blendModes
|
|
|
|
* @property {Number} blendModes.NORMAL
|
|
|
|
* @property {Number} blendModes.ADD
|
|
|
|
* @property {Number} blendModes.MULTIPLY
|
|
|
|
* @property {Number} blendModes.SCREEN
|
|
|
|
* @property {Number} blendModes.OVERLAY
|
|
|
|
* @property {Number} blendModes.DARKEN
|
|
|
|
* @property {Number} blendModes.LIGHTEN
|
|
|
|
* @property {Number} blendModes.COLOR_DODGE
|
|
|
|
* @property {Number} blendModes.COLOR_BURN
|
|
|
|
* @property {Number} blendModes.HARD_LIGHT
|
|
|
|
* @property {Number} blendModes.SOFT_LIGHT
|
|
|
|
* @property {Number} blendModes.DIFFERENCE
|
|
|
|
* @property {Number} blendModes.EXCLUSION
|
|
|
|
* @property {Number} blendModes.HUE
|
|
|
|
* @property {Number} blendModes.SATURATION
|
|
|
|
* @property {Number} blendModes.COLOR
|
|
|
|
* @property {Number} blendModes.LUMINOSITY
|
|
|
|
* @static
|
|
|
|
*/
|
2014-03-23 08:43:27 +00:00
|
|
|
blendModes: {
|
|
|
|
NORMAL:0,
|
|
|
|
ADD:1,
|
|
|
|
MULTIPLY:2,
|
|
|
|
SCREEN:3,
|
|
|
|
OVERLAY:4,
|
|
|
|
DARKEN:5,
|
|
|
|
LIGHTEN:6,
|
|
|
|
COLOR_DODGE:7,
|
|
|
|
COLOR_BURN:8,
|
|
|
|
HARD_LIGHT:9,
|
|
|
|
SOFT_LIGHT:10,
|
|
|
|
DIFFERENCE:11,
|
|
|
|
EXCLUSION:12,
|
|
|
|
HUE:13,
|
|
|
|
SATURATION:14,
|
|
|
|
COLOR:15,
|
|
|
|
LUMINOSITY:16
|
|
|
|
},
|
2014-02-25 04:40:44 +00:00
|
|
|
|
2015-02-17 15:47:50 +00:00
|
|
|
/**
|
2015-06-03 03:54:49 +00:00
|
|
|
* The scale modes that are supported by Pixi.
|
2015-02-17 15:47:50 +00:00
|
|
|
*
|
|
|
|
* The DEFAULT scale mode affects the default scaling mode of future operations.
|
|
|
|
* It can be re-assigned to either LINEAR or NEAREST, depending upon suitability.
|
|
|
|
*
|
|
|
|
* @property {Object} scaleModes
|
|
|
|
* @property {Number} scaleModes.DEFAULT=LINEAR
|
|
|
|
* @property {Number} scaleModes.LINEAR Smooth scaling
|
|
|
|
* @property {Number} scaleModes.NEAREST Pixelating scaling
|
|
|
|
* @static
|
|
|
|
*/
|
2014-03-23 08:43:27 +00:00
|
|
|
scaleModes: {
|
|
|
|
DEFAULT:0,
|
|
|
|
LINEAR:0,
|
|
|
|
NEAREST:1
|
|
|
|
}
|
2013-08-29 06:06:16 +00:00
|
|
|
|
2014-02-06 12:29:07 +00:00
|
|
|
};
|