“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
Diff: lib/N5110.h
- Revision:
- 8:1fc5e14b0db6
- Parent:
- 7:559edc36f261
diff -r 559edc36f261 -r 1fc5e14b0db6 lib/N5110.h --- a/lib/N5110.h Thu Apr 22 16:33:42 2021 +0000 +++ b/lib/N5110.h Sat Apr 24 21:31:19 2021 +0000 @@ -392,8 +392,8 @@ */ void drawEllipse(unsigned int const xc, unsigned int const yc, - unsigned int const ry, - unsigned int const rx); + unsigned int const rx, + unsigned int const ry); /** Draw Curve * @param curve_points - all points that compose the curve