Ejemplo n.º 1
0
		run: function(s){
			var robot = this.robot;
			Engine.step();
			robot.run();
			Engine.paint();
			this.stage.update();
			Engine.renderer.stage.x = -robot.getPx() + this.halfStageWidth;

		}
Ejemplo n.º 2
0
 requestAnimationFrame(function(){
     Engine.step();
     Engine.paint();
     stage.update();
     self.update();
 });