Browse Source

Move statements to seperate lines

Lewy Blue 6 years ago
parent
commit
89db424a34

+ 4 - 2
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;
 
 				}
 

+ 2 - 1
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

+ 6 - 3
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 );