2018-02-12 16:01:20 +00:00
|
|
|
/**
|
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
|
|
|
* @copyright 2018 Photon Storm Ltd.
|
|
|
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
|
|
|
*/
|
|
|
|
|
2018-03-30 13:38:58 +00:00
|
|
|
/**
|
|
|
|
* Global consts.
|
|
|
|
*
|
|
|
|
* @ignore
|
|
|
|
*/
|
|
|
|
|
2016-11-22 03:11:33 +00:00
|
|
|
var CONST = {
|
|
|
|
|
2018-02-09 13:46:04 +00:00
|
|
|
/**
|
|
|
|
* Phaser Release Version
|
|
|
|
*
|
|
|
|
* @name Phaser.VERSION
|
2018-03-30 13:38:58 +00:00
|
|
|
* @readOnly
|
2018-02-09 13:46:04 +00:00
|
|
|
* @type {string}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2018-04-19 21:47:10 +00:00
|
|
|
VERSION: '3.6.1',
|
2016-11-22 03:11:33 +00:00
|
|
|
|
2017-08-02 16:06:27 +00:00
|
|
|
BlendModes: require('./renderer/BlendModes'),
|
2018-02-09 13:46:04 +00:00
|
|
|
|
2017-08-02 16:06:27 +00:00
|
|
|
ScaleModes: require('./renderer/ScaleModes'),
|
|
|
|
|
2018-02-09 13:46:04 +00:00
|
|
|
/**
|
|
|
|
* AUTO Detect Renderer.
|
|
|
|
*
|
|
|
|
* @name Phaser.AUTO
|
2018-03-30 13:38:58 +00:00
|
|
|
* @readOnly
|
2018-02-09 13:46:04 +00:00
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2016-11-22 03:11:33 +00:00
|
|
|
AUTO: 0,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Canvas Renderer.
|
|
|
|
*
|
|
|
|
* @name Phaser.CANVAS
|
2018-03-30 13:38:58 +00:00
|
|
|
* @readOnly
|
2018-02-09 13:46:04 +00:00
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2016-11-22 03:11:33 +00:00
|
|
|
CANVAS: 1,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* WebGL Renderer.
|
|
|
|
*
|
|
|
|
* @name Phaser.WEBGL
|
2018-03-30 13:38:58 +00:00
|
|
|
* @readOnly
|
2018-02-09 13:46:04 +00:00
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-03-21 20:25:15 +00:00
|
|
|
WEBGL: 2,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Headless Renderer.
|
|
|
|
*
|
|
|
|
* @name Phaser.HEADLESS
|
2018-03-30 13:38:58 +00:00
|
|
|
* @readOnly
|
2018-02-09 13:46:04 +00:00
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-06-27 01:35:38 +00:00
|
|
|
HEADLESS: 3,
|
|
|
|
|
2018-02-09 13:46:04 +00:00
|
|
|
/**
|
|
|
|
* In Phaser the value -1 means 'forever' in lots of cases, this const allows you to use it instead
|
|
|
|
* to help you remember what the value is doing in your code.
|
|
|
|
*
|
|
|
|
* @name Phaser.FOREVER
|
2018-03-30 13:38:58 +00:00
|
|
|
* @readOnly
|
2018-02-09 13:46:04 +00:00
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-08-02 16:06:27 +00:00
|
|
|
FOREVER: -1,
|
|
|
|
|
2018-02-09 13:46:04 +00:00
|
|
|
/**
|
|
|
|
* Direction constant.
|
|
|
|
*
|
|
|
|
* @name Phaser.NONE
|
2018-03-30 13:38:58 +00:00
|
|
|
* @readOnly
|
2018-02-09 13:46:04 +00:00
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-06-27 01:35:38 +00:00
|
|
|
NONE: 4,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Direction constant.
|
|
|
|
*
|
|
|
|
* @name Phaser.UP
|
2018-03-30 13:38:58 +00:00
|
|
|
* @readOnly
|
2018-02-09 13:46:04 +00:00
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-06-27 01:35:38 +00:00
|
|
|
UP: 5,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Direction constant.
|
|
|
|
*
|
|
|
|
* @name Phaser.DOWN
|
2018-03-30 13:38:58 +00:00
|
|
|
* @readOnly
|
2018-02-09 13:46:04 +00:00
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-06-27 01:35:38 +00:00
|
|
|
DOWN: 6,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Direction constant.
|
|
|
|
*
|
|
|
|
* @name Phaser.LEFT
|
2018-03-30 13:38:58 +00:00
|
|
|
* @readOnly
|
2018-02-09 13:46:04 +00:00
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-06-27 01:35:38 +00:00
|
|
|
LEFT: 7,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Direction constant.
|
|
|
|
*
|
|
|
|
* @name Phaser.RIGHT
|
2018-03-30 13:38:58 +00:00
|
|
|
* @readOnly
|
2018-02-09 13:46:04 +00:00
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-06-27 01:35:38 +00:00
|
|
|
RIGHT: 8
|
2016-11-22 03:11:33 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = CONST;
|