Removed Camera as root container. Images now skipTransform.

This commit is contained in:
Richard Davey 2017-01-27 00:07:57 +00:00
parent ce3bb7d1fa
commit 0e0fceb5f7
3 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
var CHECKSUM = {
build: 'ec96c2b0-e379-11e6-ab53-298f7f57f45b'
build: 'ebcb3f40-e3cf-11e6-b634-8762f6b557d0'
};
module.exports = CHECKSUM;

View file

@ -34,7 +34,7 @@ var ImageFactory = {
// console.log('ImageFactory.add', key, x, y, frame, group);
// console.log('into State', this.state);
return group.children.add(new Image(this.state, x, y, key, frame));
return group.children.add(new Image(this.state, x, y, key, frame), true);
},
make: function (x, y, key, frame)

View file

@ -43,7 +43,7 @@ var Systems = function (state, config)
this.data;
this.fbo;
this.time;
this.transform;
// this.transform;
};
Systems.prototype.constructor = Systems;
@ -75,7 +75,7 @@ Systems.prototype = {
this.children = new Component.Children(this.state);
this.color = new Component.Color(this.state);
this.data = new Component.Data(this.state);
this.transform = this.camera.transform;
// this.transform = this.camera.transform;
this.inject();
},
@ -93,7 +93,7 @@ Systems.prototype = {
this.state.settings = this.settings;
this.state.camera = this.camera;
this.state.transform = this.camera.transform;
// this.state.transform = this.camera.transform;
this.state.state = this.game.state;
this.state.textures = this.game.textures;