Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Web-Development
/ checkLose
Function
checkLose
JS - Chrome Dino Game Clone/script.js:39–42 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
37
}
38
39
function
checkLose() {
40
const
dinoRect = getDinoRect()
41
return
getCactusRects().some(rect => isCollision(rect, dinoRect))
42
}
43
44
function
isCollision(rect1, rect2) {
45
return
(
Callers
1
update
Function · 0.85
Calls
3
getDinoRect
Function · 0.90
getCactusRects
Function · 0.90
isCollision
Function · 0.85
Tested by
no test coverage detected