Updated components.

This commit is contained in:
Richard Davey 2017-03-02 02:06:22 +00:00
parent 98eb2e3155
commit ed88c8e65a

View file

@ -26,12 +26,12 @@ var Bob = require('./Bob');
var Blitter = new Class({ var Blitter = new Class({
Mixins: [ Mixins: [
Components.Transform,
Components.Texture,
Components.Size,
Components.Alpha, Components.Alpha,
Components.BlendMode, Components.BlendMode,
Components.ScaleMode, Components.ScaleMode,
Components.Size,
Components.Texture,
Components.Transform,
Components.Visible, Components.Visible,
BlitterRender BlitterRender
], ],
@ -42,8 +42,8 @@ var Blitter = new Class({
{ {
GameObject.call(this, state); GameObject.call(this, state);
this.setPosition(x, y);
this.setTexture(texture, frame); this.setTexture(texture, frame);
this.setPosition(x, y);
this.children = new Components.Children(this); this.children = new Components.Children(this);