mirror of
https://github.com/photonstorm/phaser
synced 2025-01-09 19:58:52 +00:00
d804e056ed
This is one monster update.
33 lines
652 B
JavaScript
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;
|