Fixed missing Pipeline component.

This commit is contained in:
Richard Davey 2018-01-30 19:16:00 +00:00
parent 6ee154f950
commit f1a25921c7
2 changed files with 10 additions and 2 deletions

View file

@ -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');
}
});

View file

@ -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');
}
});