Big commit

This commit is contained in:
Thomas FORGIONE
2015-07-29 11:04:38 +02:00
parent a914ed2a2d
commit c690accd4b
22 changed files with 238 additions and 12 deletions

View File

@@ -156,6 +156,9 @@ Coin.prototype.get = function() {
Coin.sounds[(Coin.total ++) - 1].play();
if (Coin.total === 9) {
if (typeof Coin.onLastCoin === 'function') {
Coin.onLastCoin();
}
// You got the last coin
var music = document.getElementById('music');
if (music !== null) {

View File

@@ -111,7 +111,7 @@ var TutorialSteps = function(tutoCamera, scene, coins, onWindowResize, container
justclick:false
},
{
text: "Congratulations ! You've successfully finished the tutorial !",
text: "Congratulations ! You've successfully finished the tutorial ! <a href=\"/prototype/empty\">Click here</a> to start.",
justclick: false
}
];

View File

@@ -0,0 +1,20 @@
L3D.EmptyRecommendation = function() {
L3D.BaseRecommendation.apply(this, arguments);
this.target = new THREE.Vector3();
};
L3D.EmptyRecommendation.prototype = Object.create(L3D.BaseRecommendation.prototype);
L3D.EmptyRecommendation.prototype.constructor = L3D.EmptyRecommendation;
L3D.EmptyRecommendation.prototype.raycast = function() {};
L3D.EmptyRecommendation.prototype.check = function() {};
L3D.EmptyRecommendation.prototype.initExtremity = function() {};
L3D.EmptyRecommendation.prototype.updateExtremity = function() {};
L3D.EmptyRecommendation.prototype.setSize = function() {};
L3D.EmptyRecommendation.prototype.update = function() {};
L3D.EmptyRecommendation.prototype.regenerateArrow = function() {};
L3D.EmptyRecommendation.prototype.look = function() {};
L3D.EmptyRecommendation.prototype.addToScene = function() {};