mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 23:20:59 +00:00
Updated components.
This commit is contained in:
parent
98eb2e3155
commit
ed88c8e65a
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue