Skip to content

Commit

Permalink
Move statements to seperate lines
Browse files Browse the repository at this point in the history
  • Loading branch information
looeee committed Sep 29, 2018
1 parent 0f14339 commit 89db424
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions examples/canvas_interactive_voxelpainter.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@

switch ( event.keyCode ) {

case 16: isShiftDown = true; break;
case 16: isShiftDown = true;
break;

}

Expand All @@ -175,7 +176,8 @@

switch ( event.keyCode ) {

case 16: isShiftDown = false; break;
case 16: isShiftDown = false;
break;

}

Expand Down
3 changes: 2 additions & 1 deletion examples/misc_controls_pointerlock.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@

case 37: // left
case 65: // a
moveLeft = true; break;
moveLeft = true;
break;

case 40: // down
case 83: // s
Expand Down
9 changes: 6 additions & 3 deletions examples/misc_fps.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@

// calculate velocity towards another side of platform from jump pad position
temp.copy( pads[ j ] );
temp.y = 0; temp.setLength( - 0.8 );
temp.y = 0;
temp.setLength( - 0.8 );
temp.y = 0.7;

motion.airborne = true;
Expand Down Expand Up @@ -227,7 +228,8 @@

// wrap horizontal rotation to 0...2π

motion.rotation.y += tau; motion.rotation.y %= tau;
motion.rotation.y += tau;
motion.rotation.y %= tau;

timeLeft -= dt;

Expand Down Expand Up @@ -331,7 +333,8 @@
var lastTimeStamp;
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
gameLoop( timeElapsed );
Expand Down

0 comments on commit 89db424

Please sign in to comment.