()
| 17 | document.body.addEventListener("click", jump); |
| 18 | |
| 19 | function jump() { |
| 20 | if (character.classList != "animate") { |
| 21 | character.classList.add("animate"); |
| 22 | } |
| 23 | |
| 24 | setTimeout(function () { |
| 25 | character.classList.remove("animate"); |
| 26 | |
| 27 | }, 1000); |
| 28 | } |
| 29 | |
| 30 | var incrementScore = setInterval(function () { |
| 31 | currentPoint++; |