MCPcopy Create free account
hub / github.com/codemistic/Web-Development / handleStart

Function handleStart

JS - Chrome Dino Game Clone/script.js:62–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60}
61
62function 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
73function handleLose() {
74 setDinoLose()

Callers

nothing calls this directly

Calls 3

setupGroundFunction · 0.90
setupDinoFunction · 0.90
setupCactusFunction · 0.90

Tested by

no test coverage detected