Some jsHint semicolons
This commit is contained in:
parent
416c3026b4
commit
abe844a8ce
|
@ -8,7 +8,7 @@ L3D.addLight = function(scene) {
|
||||||
|
|
||||||
var ambient_light = new THREE.AmbientLight(0x555555);
|
var ambient_light = new THREE.AmbientLight(0x555555);
|
||||||
scene.add(ambient_light);
|
scene.add(ambient_light);
|
||||||
}
|
};
|
||||||
|
|
||||||
L3D.initPeachCastle = function(scene, collidableObjects, camera) {
|
L3D.initPeachCastle = function(scene, collidableObjects, camera) {
|
||||||
|
|
||||||
|
@ -33,14 +33,14 @@ L3D.initPeachCastle = function(scene, collidableObjects, camera) {
|
||||||
|
|
||||||
collidableObjects.push(loader.obj);
|
collidableObjects.push(loader.obj);
|
||||||
loader.obj.raycastable = true;
|
loader.obj.raycastable = true;
|
||||||
}
|
};
|
||||||
|
|
||||||
L3D.resetPeachElements = function() {
|
L3D.resetPeachElements = function() {
|
||||||
return {
|
return {
|
||||||
position: new THREE.Vector3(0.24120226734236713,0.2009624547018851,-0.5998422840047036),
|
position: new THREE.Vector3(0.24120226734236713,0.2009624547018851,-0.5998422840047036),
|
||||||
target: new THREE.Vector3(0.24120226734232672,0.20096245470190008,-40.5998422840047)
|
target: new THREE.Vector3(0.24120226734232672,0.20096245470190008,-40.5998422840047)
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
|
|
||||||
L3D.initPeach = function(camera, scene, coins) {
|
L3D.initPeach = function(camera, scene, coins) {
|
||||||
L3D.addLight(scene);
|
L3D.addLight(scene);
|
||||||
|
@ -62,7 +62,7 @@ L3D.initPeach = function(camera, scene, coins) {
|
||||||
var cameras = new L3D.CameraContainer(camera, otherCams);
|
var cameras = new L3D.CameraContainer(camera, otherCams);
|
||||||
|
|
||||||
return cameras;
|
return cameras;
|
||||||
}
|
};
|
||||||
|
|
||||||
L3D.initZeldaScene = function(scene, collidableObjects, loader) {
|
L3D.initZeldaScene = function(scene, collidableObjects, loader) {
|
||||||
// Create loader if not already done
|
// Create loader if not already done
|
||||||
|
@ -90,7 +90,7 @@ L3D.initZeldaScene = function(scene, collidableObjects, loader) {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
L3D.createPeachCameras = function(width, height) {
|
L3D.createPeachCameras = function(width, height) {
|
||||||
|
@ -150,7 +150,7 @@ L3D.createPeachCameras = function(width, height) {
|
||||||
cams.forEach(function(cam) {cam.setSize(0.2);});
|
cams.forEach(function(cam) {cam.setSize(0.2);});
|
||||||
|
|
||||||
return cams;
|
return cams;
|
||||||
}
|
};
|
||||||
|
|
||||||
L3D.initBobombScene = function(scene, collidableObjects, camera) {
|
L3D.initBobombScene = function(scene, collidableObjects, camera) {
|
||||||
|
|
||||||
|
@ -174,14 +174,14 @@ L3D.initBobombScene = function(scene, collidableObjects, camera) {
|
||||||
loader.obj.up = new THREE.Vector3(0,0,1);
|
loader.obj.up = new THREE.Vector3(0,0,1);
|
||||||
collidableObjects.push(loader.obj);
|
collidableObjects.push(loader.obj);
|
||||||
|
|
||||||
}
|
};
|
||||||
|
|
||||||
L3D.resetBobombElements = function() {
|
L3D.resetBobombElements = function() {
|
||||||
return {
|
return {
|
||||||
position: new THREE.Vector3(38.115627509754646,10.829803024792419,-19.862035691341315),
|
position: new THREE.Vector3(38.115627509754646,10.829803024792419,-19.862035691341315),
|
||||||
target: new THREE.Vector3(-1.4518898576752122,5.048214777643772,-18.869661407832535)
|
target: new THREE.Vector3(-1.4518898576752122,5.048214777643772,-18.869661407832535)
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
|
|
||||||
L3D.createBobombCoins = function() {
|
L3D.createBobombCoins = function() {
|
||||||
var coins = [];
|
var coins = [];
|
||||||
|
@ -198,7 +198,7 @@ L3D.createBobombCoins = function() {
|
||||||
);
|
);
|
||||||
|
|
||||||
return coins;
|
return coins;
|
||||||
}
|
};
|
||||||
|
|
||||||
L3D.createBobombCameras = function(width, height) {
|
L3D.createBobombCameras = function(width, height) {
|
||||||
var cams = [];
|
var cams = [];
|
||||||
|
@ -263,7 +263,7 @@ L3D.createBobombCameras = function(width, height) {
|
||||||
|
|
||||||
return cams;
|
return cams;
|
||||||
|
|
||||||
}
|
};
|
||||||
|
|
||||||
L3D.initBobomb = function(camera, scene, coins) {
|
L3D.initBobomb = function(camera, scene, coins) {
|
||||||
L3D.addLight(scene);
|
L3D.addLight(scene);
|
||||||
|
@ -295,7 +295,7 @@ L3D.initBobomb = function(camera, scene, coins) {
|
||||||
setTimeout(function() { coins.forEach(function(coin) { coin.addToScene(scene); });}, 1000);
|
setTimeout(function() { coins.forEach(function(coin) { coin.addToScene(scene); });}, 1000);
|
||||||
|
|
||||||
return cameras;
|
return cameras;
|
||||||
}
|
};
|
||||||
|
|
||||||
L3D.initWhompScene = function(scene, collidableObjects, camera) {
|
L3D.initWhompScene = function(scene, collidableObjects, camera) {
|
||||||
|
|
||||||
|
@ -349,7 +349,7 @@ L3D.initWhompScene = function(scene, collidableObjects, camera) {
|
||||||
|
|
||||||
collidableObjects.push(loader.obj);
|
collidableObjects.push(loader.obj);
|
||||||
loader.obj.raycastable = true;
|
loader.obj.raycastable = true;
|
||||||
}
|
};
|
||||||
|
|
||||||
L3D.createWhompCameras = function(width, height) {
|
L3D.createWhompCameras = function(width, height) {
|
||||||
var cams = [];
|
var cams = [];
|
||||||
|
@ -415,7 +415,7 @@ L3D.createWhompCameras = function(width, height) {
|
||||||
|
|
||||||
cams.forEach(function(cam) {cam.setSize(0.2);});
|
cams.forEach(function(cam) {cam.setSize(0.2);});
|
||||||
return cams;
|
return cams;
|
||||||
}
|
};
|
||||||
|
|
||||||
L3D.createWhompCoins = function() {
|
L3D.createWhompCoins = function() {
|
||||||
return [
|
return [
|
||||||
|
@ -428,14 +428,14 @@ L3D.createWhompCoins = function() {
|
||||||
new Coin(6.753883218882444,2.019245026490682,-7.001046531863012),
|
new Coin(6.753883218882444,2.019245026490682,-7.001046531863012),
|
||||||
new Coin(3.4354286209455246,3.487313067990168,-4.091947594995703)
|
new Coin(3.4354286209455246,3.487313067990168,-4.091947594995703)
|
||||||
];
|
];
|
||||||
}
|
};
|
||||||
|
|
||||||
L3D.resetWhompElements = function() {
|
L3D.resetWhompElements = function() {
|
||||||
return {
|
return {
|
||||||
position : new THREE.Vector3(-6.725817925071645,1.4993570618328055,-10.356480813212423),
|
position : new THREE.Vector3(-6.725817925071645,1.4993570618328055,-10.356480813212423),
|
||||||
target : new THREE.Vector3(-4.8541705829784604,1.3192268872752742,-6.825972443720941)
|
target : new THREE.Vector3(-4.8541705829784604,1.3192268872752742,-6.825972443720941)
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
|
|
||||||
L3D.initWhomp = function(camera, scene, coins) {
|
L3D.initWhomp = function(camera, scene, coins) {
|
||||||
L3D.addLight(scene);
|
L3D.addLight(scene);
|
||||||
|
@ -467,7 +467,7 @@ L3D.initWhomp = function(camera, scene, coins) {
|
||||||
setTimeout(function() { coins.forEach(function(coin) { coin.addToScene(scene); });}, 1000);
|
setTimeout(function() { coins.forEach(function(coin) { coin.addToScene(scene); });}, 1000);
|
||||||
|
|
||||||
return cameras;
|
return cameras;
|
||||||
}
|
};
|
||||||
|
|
||||||
L3D.initMountainScene = function(scene, collidableObjects, camera) {
|
L3D.initMountainScene = function(scene, collidableObjects, camera) {
|
||||||
|
|
||||||
|
@ -499,7 +499,7 @@ L3D.initMountainScene = function(scene, collidableObjects, camera) {
|
||||||
|
|
||||||
loader.load();
|
loader.load();
|
||||||
collidableObjects.push(loader.obj);
|
collidableObjects.push(loader.obj);
|
||||||
}
|
};
|
||||||
|
|
||||||
L3D.createMountainCoins = function() {
|
L3D.createMountainCoins = function() {
|
||||||
return [
|
return [
|
||||||
|
@ -512,7 +512,7 @@ L3D.createMountainCoins = function() {
|
||||||
new Coin(-13.980787439949077,-0.10719616576499978,22.24889144136683),
|
new Coin(-13.980787439949077,-0.10719616576499978,22.24889144136683),
|
||||||
new Coin(4.491305202472262,3.6813420775366277,10.03229664467681)
|
new Coin(4.491305202472262,3.6813420775366277,10.03229664467681)
|
||||||
];
|
];
|
||||||
}
|
};
|
||||||
|
|
||||||
L3D.createMountainCameras = function(width, height) {
|
L3D.createMountainCameras = function(width, height) {
|
||||||
var cams = [];
|
var cams = [];
|
||||||
|
@ -580,14 +580,14 @@ L3D.createMountainCameras = function(width, height) {
|
||||||
);
|
);
|
||||||
|
|
||||||
return cams;
|
return cams;
|
||||||
}
|
};
|
||||||
|
|
||||||
L3D.resetMountainElements = function() {
|
L3D.resetMountainElements = function() {
|
||||||
return {
|
return {
|
||||||
position : new THREE.Vector3(-20.558328115300082,23.601312087942762,-10.220633604814038),
|
position : new THREE.Vector3(-20.558328115300082,23.601312087942762,-10.220633604814038),
|
||||||
target : new THREE.Vector3(11.025356711105232,11.969889531789319,11.393733425161644)
|
target : new THREE.Vector3(11.025356711105232,11.969889531789319,11.393733425161644)
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
|
|
||||||
L3D.initMountain = function(camera, scene, coins) {
|
L3D.initMountain = function(camera, scene, coins) {
|
||||||
L3D.addLight(scene);
|
L3D.addLight(scene);
|
||||||
|
@ -618,7 +618,7 @@ L3D.initMountain = function(camera, scene, coins) {
|
||||||
|
|
||||||
setTimeout(function() { coins.forEach(function(coin) { coin.addToScene(scene); });}, 1000);
|
setTimeout(function() { coins.forEach(function(coin) { coin.addToScene(scene); });}, 1000);
|
||||||
return cameras;
|
return cameras;
|
||||||
}
|
};
|
||||||
|
|
||||||
L3D.initSponzaScene = function(scene, collidableObjects, camera) {
|
L3D.initSponzaScene = function(scene, collidableObjects, camera) {
|
||||||
|
|
||||||
|
@ -686,22 +686,22 @@ L3D.initSponzaScene = function(scene, collidableObjects, camera) {
|
||||||
// }
|
// }
|
||||||
// );
|
// );
|
||||||
|
|
||||||
}
|
};
|
||||||
|
|
||||||
L3D.createSponzaCoins = function() {
|
L3D.createSponzaCoins = function() {
|
||||||
return [];
|
return [];
|
||||||
}
|
};
|
||||||
|
|
||||||
L3D.createSponzaCameras = function() {
|
L3D.createSponzaCameras = function() {
|
||||||
return [];
|
return [];
|
||||||
}
|
};
|
||||||
|
|
||||||
L3D.resetSponzaElements = function() {
|
L3D.resetSponzaElements = function() {
|
||||||
return {
|
return {
|
||||||
position: new THREE.Vector3(92.98373669520107,60.8877777990862,11.130138641670737),
|
position: new THREE.Vector3(92.98373669520107,60.8877777990862,11.130138641670737),
|
||||||
target: new THREE.Vector3(53.76696417668598,56.09739213575453,4.877382575136091)
|
target: new THREE.Vector3(53.76696417668598,56.09739213575453,4.877382575136091)
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
|
|
||||||
L3D.initSponza = function(camera, scene, coins) {
|
L3D.initSponza = function(camera, scene, coins) {
|
||||||
|
|
||||||
|
@ -736,4 +736,4 @@ L3D.initSponza = function(camera, scene, coins) {
|
||||||
|
|
||||||
return cameras;
|
return cameras;
|
||||||
|
|
||||||
}
|
};
|
||||||
|
|
Loading…
Reference in New Issue