You are on page 1of 10

Racing Car Game

by

Benjamin Crawford
Analysis

What will the game do?


My game will make you race against another person, the person with the highest score/amount of laps wins.

How will the program work?

The program will work by the players pressing WASD or the Arrow keys

Success Criteria example (not for this project).

1. Allow the player 3 turns.


2. Let player know their score.
3. Allow player to play again.
Design

What programming will be needed?

Snap

What are the inputs and outputs?

Keyboard (WASD + Arrow keys) and Monitor

What tests will be needed?


Design

Add a flow chart for your program.


Programming Tasks

1. Design a background track layout for the game.

2. Design a car sprite.

3. Add code to ask the user how long they will play the game. Store this game time value in a variable.

4. Add code to move the car left, right, up and down around the track.

5. Add code so that every time the program is run, the car starts from the same position on the start line.

6. Add code so that if the car moves off the track, the speed is reduced by 50%.

7. Add code so that every time the car completes a lap, the lap count increases. Store this lap value in a variable.

8. Add code to decrease the game time by 1 every second.

9. Add code so that the game ends when the game time becomes zero.

10. Add code to show the player how many laps they have completed.
Development

Add screenshots of your code.


Development

Add screenshots of your code.


Development

Add screenshots of your code.


Testing

What errors have you corrected?


Error with the Stage not changing when timer reached 0 seconds remaining.

At 00:35 it shows the car moving at half the speed because


the car was off the track. When on the ‘Grass’ it will also
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee deduct a point every second from the car.
Evaluation

Has the problem been solved adequately?


Yes. The RED/BLUE Stage will now change to whoever wins

Were the items in the success criteria successfully implemented? 2/3


Both players can see their score when racing and the players can play again.

What problems did you encounter?


Lap and score count not showing and stage not changing to display if blue or red won.
When off the track, score didn’t decrease.

What features would you like to add in the future?


Expand the track and add more players on the grid.
Display a Leader board for the most points in the 60 seconds time period.

You might also like