contains my game for the embedded systems project 2645

Dependencies:   mbed FXOS8700CQQQ

Tests/tests.cpp

Committer:
OmarAlebiary
Date:
2019-04-20
Revision:
26:35714debc45f

File content as of revision 26:35714debc45f:

#include "tests.h"
Menus menu;
RocketRacer Rocket_Racing;
//testing menus
////////////////////////////////////////////////
void tests::test_welcomeMenu(Gamepad &pad,N5110 &lcd){
    menu.welcomeMenu(pad,lcd);
}

void tests::test_PlayMelody(Gamepad &pad){
    menu.PlayMelody(pad);
}
void tests::test_drawMenu(N5110 &lcd,Gamepad &pad){
    menu.drawMenu(lcd,pad);
    }
    
void tests::test_credits_page(N5110 &lcd,Gamepad &pad){
    menu.credits(lcd,pad);
}

void tests::test_loading_menu(N5110 &lcd){
    menu.loading_menu(lcd);
}

void tests::test_InstructionsMenu(Gamepad &pad,N5110 &lcd){
    menu.InstructionsMenu(pad,lcd);
}


//testing game
////////////////////////////////////////////////
void tests::test_Game_Loop(Gamepad &pad,N5110 &lcd){
    while(1){
        Rocket_Racing.Game_Loop(lcd,pad);
    }
    
}