src/core/system.js in entityjs-0.4.1 vs src/core/system.js in entityjs-0.4.2

- old
+ new

@@ -86,18 +86,18 @@ this.sizeX = s.sizeX = this.canvas.width; this.sizeY = s.sizeY = this.canvas.height; //init listeners - if(re._c.keyboard){ - re._c.keyboard.i(); + if(re.keyboard){ + re.keyboard.i(); } - if(re._c.mouse){ - re._c.mouse.i(); + if(re.mouse){ + re.mouse.i(); } - if(re._c.touch){ - re._c.touch.i(); + if(re.touch){ + re.touch.i(); } this.system_loop = this.defaultLoop; this.second = this.stepSize * 30; return this; @@ -117,21 +117,18 @@ this.clear(this.clearColor); this.draw(); }, update:function(){ - re._c.update.update(this.stepSize); + re.update.update(this.stepSize); }, draw:function(){ //renders default drawlist re.drawlist().drawlist(this.context); } }) -.run(function(){ //create default system - re.system = re.sys = re.e('system'); - -}); + re.system = re.sys = re.e('system'); \ No newline at end of file