Help me out with game over logic! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
4th Jan 2023, 11:08 AM
Ashish Raj
Ashish Raj - avatar
4 Answers
+ 2
I think you will get help faster when you describe precisely what the code is supposed to do.
4th Jan 2023, 11:44 AM
Lisa
Lisa - avatar
+ 2
On each iteration, calculate the distance between the cars. If the distance is so small that the cars must overlap, you can detect a crash and stop the animation.
4th Jan 2023, 9:03 PM
Lisa
Lisa - avatar
0
Lisa when the car crashes .. game over
4th Jan 2023, 9:00 PM
Ashish Raj
Ashish Raj - avatar
0
How to update service in php
6th Jan 2023, 7:46 AM
LAKSHMAN LAL
LAKSHMAN LAL - avatar