+ 2

How my game over if red box hits yellow box

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

31st Jul 2020, 3:01 AM
Tony Sharma K. K Gaming
Tony Sharma K. K Gaming - avatar
2 Antworten
+ 1
Add collision testing in upo() and downo() If posX > posY && posX < posY + yHeight then do something. If posY > posX && posY < posX + x Height then do something
31st Jul 2020, 3:22 AM
Gordon
Gordon - avatar
0
You must check videos related collision detection on YouTube.
31st Jul 2020, 3:21 AM
Divya Mohan
Divya Mohan - avatar