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