提交 89db424a 编写于 作者: L Lewy Blue

Move statements to seperate lines

上级 0f14339f
...@@ -165,7 +165,8 @@ ...@@ -165,7 +165,8 @@
switch ( event.keyCode ) { switch ( event.keyCode ) {
case 16: isShiftDown = true; break; case 16: isShiftDown = true;
break;
} }
...@@ -175,7 +176,8 @@ ...@@ -175,7 +176,8 @@
switch ( event.keyCode ) { switch ( event.keyCode ) {
case 16: isShiftDown = false; break; case 16: isShiftDown = false;
break;
} }
......
...@@ -145,7 +145,8 @@ ...@@ -145,7 +145,8 @@
case 37: // left case 37: // left
case 65: // a case 65: // a
moveLeft = true; break; moveLeft = true;
break;
case 40: // down case 40: // down
case 83: // s case 83: // s
......
...@@ -140,7 +140,8 @@ ...@@ -140,7 +140,8 @@
// calculate velocity towards another side of platform from jump pad position // calculate velocity towards another side of platform from jump pad position
temp.copy( pads[ j ] ); temp.copy( pads[ j ] );
temp.y = 0; temp.setLength( - 0.8 ); temp.y = 0;
temp.setLength( - 0.8 );
temp.y = 0.7; temp.y = 0.7;
motion.airborne = true; motion.airborne = true;
...@@ -227,7 +228,8 @@ ...@@ -227,7 +228,8 @@
// wrap horizontal rotation to 0...2π // wrap horizontal rotation to 0...2π
motion.rotation.y += tau; motion.rotation.y %= tau; motion.rotation.y += tau;
motion.rotation.y %= tau;
timeLeft -= dt; timeLeft -= dt;
...@@ -331,7 +333,8 @@ ...@@ -331,7 +333,8 @@
var lastTimeStamp; var lastTimeStamp;
var render = function ( timeStamp ) { var render = function ( timeStamp ) {
var timeElapsed = lastTimeStamp ? timeStamp - lastTimeStamp : 0; lastTimeStamp = timeStamp; var timeElapsed = lastTimeStamp ? timeStamp - lastTimeStamp : 0;
lastTimeStamp = timeStamp;
// call our game loop with the time elapsed since last rendering, in ms // call our game loop with the time elapsed since last rendering, in ms
gameLoop( timeElapsed ); gameLoop( timeElapsed );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册