diff --git a/examples/canvas_interactive_voxelpainter.html b/examples/canvas_interactive_voxelpainter.html index 93e493b4679e4ef21cea4064657b541195e8e23f..44330f4abe4e17c03dedcdaff22f327421cf4f6c 100644 --- a/examples/canvas_interactive_voxelpainter.html +++ b/examples/canvas_interactive_voxelpainter.html @@ -165,7 +165,8 @@ switch ( event.keyCode ) { - case 16: isShiftDown = true; break; + case 16: isShiftDown = true; + break; } @@ -175,7 +176,8 @@ switch ( event.keyCode ) { - case 16: isShiftDown = false; break; + case 16: isShiftDown = false; + break; } diff --git a/examples/misc_controls_pointerlock.html b/examples/misc_controls_pointerlock.html index be75ae4233cdfb91cac316361a4f2e59b7521ee0..1f48d618fbc769cca87000d61e65a60d04339561 100644 --- a/examples/misc_controls_pointerlock.html +++ b/examples/misc_controls_pointerlock.html @@ -145,7 +145,8 @@ case 37: // left case 65: // a - moveLeft = true; break; + moveLeft = true; + break; case 40: // down case 83: // s diff --git a/examples/misc_fps.html b/examples/misc_fps.html index e681decb10f6acb303ca46341a30e9eed0b7c3fc..23343668ef1282f4314db437a773539185ab3987 100644 --- a/examples/misc_fps.html +++ b/examples/misc_fps.html @@ -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; @@ -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; @@ -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 );