1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
| let progress = 0 window.onmousedown = e=>{ switch (progress%9){ case 0: cameraMovement({x:1.64, y :0.79, z:-0.16}) cameraRotation({x:0.83, y :-1.17, z:0.79}) break; case 1: cameraMovement({x:1.35, y :0.83, z:-5.6}) cameraRotation({x:0.43, y :0.13, z:-0.06}) break; case 2: cameraMovement({x:3.04, y :-0.17, z:-6.33}) cameraRotation({x:3, y :-0.9, z:3.03}) break; case 4: cameraMovement({x:2.13, y :0.89, z:2.04}) cameraRotation({x:2.85, y :-0.99, z:2.89}) break; case 5: cameraMovement({x:-0.42, y :-0.13, z:2.11}) cameraRotation({x:2.88, y :-0.09, z:3.11}) break; case 6: cameraMovement({x:-1.04, y :0.36, z:0.18}) cameraRotation({x:2.41, y :1.4, z:-2.42}) break; case 7: cameraMovement({x:-0.84, y :0.58, z:-4.4}) cameraRotation({x:0.11, y :0.83, z:-0.08}) break; case 8: cameraMovement({x:-0.38, y :0.03, z:-1.57}) cameraRotation({x:1.57, y :0.08, z:-1.62}) break; } progress++ }
|