mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 13:43:26 +00:00
Fixed missing Pipeline component.
This commit is contained in:
parent
6ee154f950
commit
f1a25921c7
2 changed files with 10 additions and 2 deletions
|
@ -3,6 +3,7 @@ var Class = require('../../utils/Class');
|
|||
var Components = require('./components');
|
||||
var GameObject = require('../../gameobjects/GameObject');
|
||||
var GetFastValue = require('../../utils/object/GetFastValue');
|
||||
var Pipeline = require('../../gameobjects/components/Pipeline');
|
||||
var Image = require('../../gameobjects/image/Image');
|
||||
var Vector2 = require('../../math/Vector2');
|
||||
|
||||
|
@ -22,7 +23,8 @@ var MatterImage = new Class({
|
|||
Components.Sleep,
|
||||
Components.Static,
|
||||
Components.Transform,
|
||||
Components.Velocity
|
||||
Components.Velocity,
|
||||
Pipeline
|
||||
],
|
||||
|
||||
initialize:
|
||||
|
@ -59,6 +61,8 @@ var MatterImage = new Class({
|
|||
}
|
||||
|
||||
this.setPosition(x, y);
|
||||
|
||||
this.initPipeline('TextureTintPipeline');
|
||||
}
|
||||
|
||||
});
|
||||
|
|
|
@ -4,6 +4,7 @@ var Class = require('../../utils/Class');
|
|||
var Components = require('./components');
|
||||
var GameObject = require('../../gameobjects/GameObject');
|
||||
var GetFastValue = require('../../utils/object/GetFastValue');
|
||||
var Pipeline = require('../../gameobjects/components/Pipeline');
|
||||
var Sprite = require('../../gameobjects/sprite/Sprite');
|
||||
var Vector2 = require('../../math/Vector2');
|
||||
|
||||
|
@ -23,7 +24,8 @@ var MatterSprite = new Class({
|
|||
Components.Sleep,
|
||||
Components.Static,
|
||||
Components.Transform,
|
||||
Components.Velocity
|
||||
Components.Velocity,
|
||||
Pipeline
|
||||
],
|
||||
|
||||
initialize:
|
||||
|
@ -62,6 +64,8 @@ var MatterSprite = new Class({
|
|||
}
|
||||
|
||||
this.setPosition(x, y);
|
||||
|
||||
this.initPipeline('TextureTintPipeline');
|
||||
}
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue