run: function(s){ var robot = this.robot; Engine.step(); robot.run(); Engine.paint(); this.stage.update(); Engine.renderer.stage.x = -robot.getPx() + this.halfStageWidth; }
requestAnimationFrame(function(){ Engine.step(); Engine.paint(); stage.update(); self.update(); });