예제 #1
0
파일: RobotDemo.js 프로젝트: colorhook/JPE
		run: function(s){
			var robot = this.robot;
			Engine.step();
			robot.run();
			Engine.paint();
			this.stage.update();
			Engine.renderer.stage.x = -robot.getPx() + this.halfStageWidth;

		}
예제 #2
0
파일: RigidDemo.js 프로젝트: colorhook/JPE
 requestAnimationFrame(function(){
     Engine.step();
     Engine.paint();
     stage.update();
     self.update();
 });