“Race Collision” is a one player game in which a truck has to avoid “particles” that appear on the road. By the use of the joystick, the player can guide themselves through the menu system to start the game. The truck is the main element of the game and it can be moved from side to side with the joystick. The road curves randomly from time to time and the player has to be careful to keep the truck within the road boundaries. Particles appear on the screen at random positions and 4 collisions lead to the end of the game.

Dependencies:   ELEC2645_JoystickLCD_LPC1768_2021

Committer:
alex_20
Date:
Wed Mar 17 17:32:56 2021 +0000
Revision:
1:2ae7a8b01771
Child:
3:cbe2dcca5058
Iteration 1. Curve done

Who changed what in which revision?

UserRevisionLine numberNew contents of line
alex_20 1:2ae7a8b01771 1 #ifndef UTILS_H
alex_20 1:2ae7a8b01771 2 #define UTILS_H
alex_20 1:2ae7a8b01771 3
alex_20 1:2ae7a8b01771 4 struct Position2D {
alex_20 1:2ae7a8b01771 5 int x;
alex_20 1:2ae7a8b01771 6 int y;
alex_20 1:2ae7a8b01771 7 };
alex_20 1:2ae7a8b01771 8
alex_20 1:2ae7a8b01771 9 struct Vector2D {
alex_20 1:2ae7a8b01771 10 float x;
alex_20 1:2ae7a8b01771 11 float y;
alex_20 1:2ae7a8b01771 12 };
alex_20 1:2ae7a8b01771 13
alex_20 1:2ae7a8b01771 14 #endif