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-01-16 19:49:13 +00:00
|
|
|
var Class = require('../utils/Class');
|
2016-11-29 13:01:16 +00:00
|
|
|
var Systems = require('./Systems');
|
|
|
|
|
2018-02-12 15:18:31 +00:00
|
|
|
/**
|
|
|
|
* @classdesc
|
|
|
|
* [description]
|
|
|
|
*
|
|
|
|
* @class Scene
|
|
|
|
* @memberOf Phaser
|
|
|
|
* @constructor
|
|
|
|
* @since 3.0.0
|
|
|
|
*
|
|
|
|
* @param {object} config - [description]
|
|
|
|
*/
|
2017-07-14 13:30:20 +00:00
|
|
|
var Scene = new Class({
|
2016-11-29 13:01:16 +00:00
|
|
|
|
2017-07-04 12:58:45 +00:00
|
|
|
initialize:
|
|
|
|
|
2017-07-14 13:30:20 +00:00
|
|
|
function Scene (config)
|
2017-07-04 12:58:45 +00:00
|
|
|
{
|
2018-02-12 15:18:31 +00:00
|
|
|
/**
|
|
|
|
* The Scene Systems. You must never overwrite this property, or all hell will break lose.
|
|
|
|
*
|
|
|
|
* @name Phaser.Scene#sys
|
|
|
|
* @type {Phaser.Scenes.Systems}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-07-04 12:58:45 +00:00
|
|
|
this.sys = new Systems(this, config);
|
|
|
|
},
|
2016-11-29 13:01:16 +00:00
|
|
|
|
2018-02-12 15:18:31 +00:00
|
|
|
/**
|
|
|
|
* Should be overridden by your own Scenes.
|
|
|
|
*
|
|
|
|
* @method Phaser.Scene#update
|
|
|
|
* @override
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2016-11-29 13:01:16 +00:00
|
|
|
update: function ()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2017-07-04 12:58:45 +00:00
|
|
|
});
|
2017-06-29 23:32:18 +00:00
|
|
|
|
2017-07-14 13:30:20 +00:00
|
|
|
module.exports = Scene;
|