“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:
Sun Mar 21 17:03:59 2021 +0000
Revision:
4:def20a1665d1
before curve switched to one case

Who changed what in which revision?

UserRevisionLine numberNew contents of line
alex_20 4:def20a1665d1 1 #ifndef VECTOR_H
alex_20 4:def20a1665d1 2 #define VECTOR_H
alex_20 4:def20a1665d1 3
alex_20 4:def20a1665d1 4 #include "mbed.h"
alex_20 4:def20a1665d1 5 #include "N5110.h"
alex_20 4:def20a1665d1 6
alex_20 4:def20a1665d1 7 struct Position2D {
alex_20 4:def20a1665d1 8 int x;
alex_20 4:def20a1665d1 9 int y;
alex_20 4:def20a1665d1 10 };
alex_20 4:def20a1665d1 11
alex_20 4:def20a1665d1 12 typedef struct Vector2Df { float x; float y; } Vector2Df;
alex_20 4:def20a1665d1 13
alex_20 4:def20a1665d1 14 #endif