Game - hits a traffic car or gets out of the boundary of...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Description:- To start off with the game, we will first begin the game by displaying the game board. We make it 12 rows high and 18 columns high with dashes all around as shown in the lab description. A random road, whether straight or with multiple turns going right or left will be generated according to the user selected level of difficulty. The amount of traffic is also dependent on the difficulty level. We keep track of the number of times the user
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: hits a traffic car or gets out of the boundary of the road and based on this exit the game. Mainly if the accidents are more than 4 we exit the game. We use the timer to show acceleration and deceleration. We increase the timer when the user presses A and decrease it when the user presses D. The steering is controlled by J or L. It can be incorporated by displaying the use of space....
View Full Document

This note was uploaded on 04/07/2008 for the course CSE 379 taught by Professor Vb during the Spring '08 term at SUNY Buffalo.

Ask a homework question - tutors are online