Brendan Abolivier 9 anni fa
parent
commit
97ecb77399
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3
    0
      web/js/game.js

+ 3
- 0
web/js/game.js Vedi File

@@ -120,9 +120,11 @@ function checkAnswer() {
120 120
   $("#rep2").off('click');
121 121
   $("#both").off('click');
122 122
   stopTimer();
123
+  console.log(reponseUser == bonneReponse);
123 124
   if(reponseUser == bonneReponse) {
124 125
     score += secRestantes+1;
125 126
   }
127
+  console.log(score);
126 128
   if(score > 1) {
127 129
     $("#score").html("Score : "+score+" miams");
128 130
     $("#score-responsive").html(score+" miams");
@@ -191,6 +193,7 @@ function stopTimer() {
191 193
   window.clearTimeout(timer);
192 194
   $("#timer").addClass("pause");
193 195
   secRestantes = Math.round($("#timer").width()/baseWidth*timing);
196
+  console.log(secRestantes);
194 197
 }
195 198
 
196 199
 function endGame() {