contains my game for the embedded systems project 2645

Dependencies:   mbed FXOS8700CQQQ

Committer:
OmarAlebiary
Date:
Sat Apr 20 21:23:33 2019 +0000
Revision:
26:35714debc45f
added tests.cpp and tests.h

Who changed what in which revision?

UserRevisionLine numberNew contents of line
OmarAlebiary 26:35714debc45f 1 #include "tests.h"
OmarAlebiary 26:35714debc45f 2 Menus menu;
OmarAlebiary 26:35714debc45f 3 RocketRacer Rocket_Racing;
OmarAlebiary 26:35714debc45f 4 //testing menus
OmarAlebiary 26:35714debc45f 5 ////////////////////////////////////////////////
OmarAlebiary 26:35714debc45f 6 void tests::test_welcomeMenu(Gamepad &pad,N5110 &lcd){
OmarAlebiary 26:35714debc45f 7 menu.welcomeMenu(pad,lcd);
OmarAlebiary 26:35714debc45f 8 }
OmarAlebiary 26:35714debc45f 9
OmarAlebiary 26:35714debc45f 10 void tests::test_PlayMelody(Gamepad &pad){
OmarAlebiary 26:35714debc45f 11 menu.PlayMelody(pad);
OmarAlebiary 26:35714debc45f 12 }
OmarAlebiary 26:35714debc45f 13 void tests::test_drawMenu(N5110 &lcd,Gamepad &pad){
OmarAlebiary 26:35714debc45f 14 menu.drawMenu(lcd,pad);
OmarAlebiary 26:35714debc45f 15 }
OmarAlebiary 26:35714debc45f 16
OmarAlebiary 26:35714debc45f 17 void tests::test_credits_page(N5110 &lcd,Gamepad &pad){
OmarAlebiary 26:35714debc45f 18 menu.credits(lcd,pad);
OmarAlebiary 26:35714debc45f 19 }
OmarAlebiary 26:35714debc45f 20
OmarAlebiary 26:35714debc45f 21 void tests::test_loading_menu(N5110 &lcd){
OmarAlebiary 26:35714debc45f 22 menu.loading_menu(lcd);
OmarAlebiary 26:35714debc45f 23 }
OmarAlebiary 26:35714debc45f 24
OmarAlebiary 26:35714debc45f 25 void tests::test_InstructionsMenu(Gamepad &pad,N5110 &lcd){
OmarAlebiary 26:35714debc45f 26 menu.InstructionsMenu(pad,lcd);
OmarAlebiary 26:35714debc45f 27 }
OmarAlebiary 26:35714debc45f 28
OmarAlebiary 26:35714debc45f 29
OmarAlebiary 26:35714debc45f 30 //testing game
OmarAlebiary 26:35714debc45f 31 ////////////////////////////////////////////////
OmarAlebiary 26:35714debc45f 32 void tests::test_Game_Loop(Gamepad &pad,N5110 &lcd){
OmarAlebiary 26:35714debc45f 33 while(1){
OmarAlebiary 26:35714debc45f 34 Rocket_Racing.Game_Loop(lcd,pad);
OmarAlebiary 26:35714debc45f 35 }
OmarAlebiary 26:35714debc45f 36
OmarAlebiary 26:35714debc45f 37 }