Assignment 4:Go Cart Collision

Introduction

Game Play

Navigate around the screen with keys : u , g, h and k. For every step the player move, he will be given a point. But when he collide into the "ventilation system", 5 points will be deducted. The game play can continue for as long as the player wants. The two interface below will be show when the game play start.



____________________________________________________________________________


From the screenshot above, we can see that 1 point is given for every step move. However, when there is a collision, 5 points are deducted. Current score change from 16 to 11.

____________________________________________________________________________


Player can continue to navigate around and just close the window when they wish to quit.

Implemenatation

Coordinates of the kart and the "ventilation system" are checked to see if they intersect. If they do intersect, the kart will be stop from moving in the same direction as it will "crash" into the "ventilation system". At the same time, points are deducted.

Click here to Download

Back

Hosted by www.Geocities.ws

1