Skip to content

Commit

Permalink
little change
Browse files Browse the repository at this point in the history
  • Loading branch information
mcouzinet committed Jun 1, 2012
1 parent e96183a commit 10b59ea
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion js/map.js
Expand Up @@ -80,6 +80,10 @@ function initLevel(leLevel){
if(interfaceReady){
sendToActionScript('{"action":"init","numSheep":"'+numSheep+'","level":"'+ leLevel+'"}');
}
document.getElementById("mission").innerHTML = "CAPTURER "+nbSheep+" MOUTON(S)";
document.getElementById("score").innerHTML = score;
document.getElementById("viseur").innerHTML = "";
document.getElementById("bouton").style.backgroundPosition="0px -88px";
camera.setAltitude(500);
camera.setLatitude(centerMapLat);
camera.setLongitude(centerMapLon);
Expand All @@ -88,6 +92,7 @@ function initLevel(leLevel){

function newGame(leLevel){
initLevel(1);
score = 0;
}

function thisMovie(movieName){
Expand Down Expand Up @@ -124,7 +129,7 @@ function sendToJavaScript(value) {
}
}
nbSheep = nbSheep - 1;
document.getElementById("mission").innerHTML = "CAPTURER "+nbSheep+" MOUTON(S)";

document.getElementById("viseur").innerHTML = "EMMENER LE MOUTON DANS L'HYPERESPACE";
break;

Expand All @@ -138,6 +143,7 @@ function sendToJavaScript(value) {
console.log('décharge');
charger = false;
score += 10;
document.getElementById("mission").innerHTML = "CAPTURER "+nbSheep+" MOUTON(S)";
document.getElementById("score").innerHTML = score;
document.getElementById("viseur").innerHTML = "";
document.getElementById("bouton").style.backgroundPosition="0px -88px";
Expand Down

0 comments on commit 10b59ea

Please sign in to comment.