Can anybody tell me why my colide detection codeblock is not working? And can you fix it ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can anybody tell me why my colide detection codeblock is not working? And can you fix it ??

https://code.sololearn.com/W5jpa8GN846i/?ref=app

24th Aug 2022, 5:17 PM
Somim Ahmed
Somim Ahmed - avatar
1 Answer
0
if ( birdleft + 34 > pipeleft && // Adjust the values based on your bird and pipe dimensions birdleft < pipeleft + 70 && // Adjust the values based on your bird and pipe dimensions (birdtop < holetop || birdtop + 24 > holetop + 100) // Adjust the values based on your bird and hole dimensions ) { disp.style.display = "none"; gameover.style.display = "block"; }
1st Oct 2023, 9:36 AM
D1M3
D1M3 - avatar