“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

lib/Utils.h

Committer:
alex_20
Date:
2021-03-17
Revision:
1:2ae7a8b01771
Child:
3:cbe2dcca5058

File content as of revision 1:2ae7a8b01771:

#ifndef UTILS_H
#define UTILS_H

struct Position2D {
  int x;
  int y;  
};

struct Vector2D {
  float x;
  float y;  
};

#endif