“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

Revision:
6:40ef2030334c
Parent:
5:7930d289e7fc
Child:
7:559edc36f261
--- a/lib/N5110.h	Fri Mar 26 15:21:07 2021 +0000
+++ b/lib/N5110.h	Thu Apr 22 10:52:37 2021 +0000
@@ -188,7 +188,7 @@
 private:
 // objects
     SPI         *_spi;
-    DigitalOut      *_led;
+    DigitalOut  *_led;
     DigitalOut  *_pwr;
     DigitalOut  *_sce;
     DigitalOut  *_rst;