()
| 60 | } |
| 61 | |
| 62 | function handleStart() { |
| 63 | lastTime = null |
| 64 | speedScale = 1 |
| 65 | score = 0 |
| 66 | setupGround() |
| 67 | setupDino() |
| 68 | setupCactus() |
| 69 | startScreenElem.classList.add("hide") |
| 70 | window.requestAnimationFrame(update) |
| 71 | } |
| 72 | |
| 73 | function handleLose() { |
| 74 | setDinoLose() |
nothing calls this directly
no test coverage detected