Circle 1: Any time the car touches the color green as it goes around the track it will rotate many times to simulate spinning out. After it spins out it will not spin again until the car goes back on the track and touches the green another time.
Circle 2: Every time the program starts initialize the laps variable to 0. The car will complete a lap after it has gone around the track and touches the starting line. After 2 laps are completed game will end.
No comments:
Post a Comment