phaser/src/scene/Scene.js

51 lines
1,005 B
JavaScript
Raw Normal View History

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]
*/
var Scene = new Class({
2016-11-29 13:01:16 +00:00
initialize:
function Scene (config)
{
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
*/
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 ()
{
}
});
module.exports = Scene;