phaser/v3/src/gameobjects/zone/Zone.js
photonstorm d804e056ed Renaming from State to Scene internally.
This is one monster update.
2017-07-14 14:50:51 +01:00

33 lines
652 B
JavaScript

var Class = require('../../utils/Class');
var GameObject = require('../GameObject');
var Components = require('../components');
var Zone = new Class({
Extends: GameObject,
Mixins: [
Components.GetBounds,
Components.Origin,
Components.ScaleMode,
Components.Size,
Components.Transform,
Components.ScrollFactor,
Components.Visible
],
initialize:
function Zone (scene, x, y, width, height)
{
GameObject.call(this, scene, 'Zone');
this.setPosition(x, y);
this.setSize(width, height);
this.setOrigin(0);
}
});
module.exports = Zone;