mirror of
https://github.com/photonstorm/phaser
synced 2024-12-23 11:33:28 +00:00
117 lines
1.8 KiB
JavaScript
117 lines
1.8 KiB
JavaScript
/**
|
|
* @author Richard Davey <rich@photonstorm.com>
|
|
* @copyright 2019 Photon Storm Ltd.
|
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
|
*/
|
|
|
|
/**
|
|
* Scene consts.
|
|
*
|
|
* @ignore
|
|
*/
|
|
|
|
var CONST = {
|
|
|
|
/**
|
|
* Scene state.
|
|
*
|
|
* @name Phaser.Scenes.PENDING
|
|
* @readonly
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
PENDING: 0,
|
|
|
|
/**
|
|
* Scene state.
|
|
*
|
|
* @name Phaser.Scenes.INIT
|
|
* @readonly
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
INIT: 1,
|
|
|
|
/**
|
|
* Scene state.
|
|
*
|
|
* @name Phaser.Scenes.START
|
|
* @readonly
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
START: 2,
|
|
|
|
/**
|
|
* Scene state.
|
|
*
|
|
* @name Phaser.Scenes.LOADING
|
|
* @readonly
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
LOADING: 3,
|
|
|
|
/**
|
|
* Scene state.
|
|
*
|
|
* @name Phaser.Scenes.CREATING
|
|
* @readonly
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
CREATING: 4,
|
|
|
|
/**
|
|
* Scene state.
|
|
*
|
|
* @name Phaser.Scenes.RUNNING
|
|
* @readonly
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
RUNNING: 5,
|
|
|
|
/**
|
|
* Scene state.
|
|
*
|
|
* @name Phaser.Scenes.PAUSED
|
|
* @readonly
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
PAUSED: 6,
|
|
|
|
/**
|
|
* Scene state.
|
|
*
|
|
* @name Phaser.Scenes.SLEEPING
|
|
* @readonly
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
SLEEPING: 7,
|
|
|
|
/**
|
|
* Scene state.
|
|
*
|
|
* @name Phaser.Scenes.SHUTDOWN
|
|
* @readonly
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
SHUTDOWN: 8,
|
|
|
|
/**
|
|
* Scene state.
|
|
*
|
|
* @name Phaser.Scenes.DESTROYED
|
|
* @readonly
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
DESTROYED: 9
|
|
|
|
};
|
|
|
|
module.exports = CONST;
|