contains my game for the embedded systems project 2645

Dependencies:   mbed FXOS8700CQQQ

GameEngine/RocketRacer.cpp

Committer:
OmarAlebiary
Date:
2019-03-26
Revision:
7:7e50cac5e0f4
Parent:
6:958376d55d70
Child:
8:b547037f42be

File content as of revision 7:7e50cac5e0f4:

#include "RocketRacer.h"



void RocketRacer::MainGameDisplay(N5110 &lcd){
    
    lcd.clear();
    lcd.drawRect(0,0,52,48,FILL_TRANSPARENT);
    char buffer[14];
//    char buffer1[14];
//    int score=64;
    
    sprintf(buffer,"score");
    lcd.printString(buffer,55,0);
    //sprintf(buffer1,"%d",score);
//    lcd.printString(buffer1,58,1);
    lcd.refresh();
    
    }

void RocketRacer::EndGame(N5110 &lcd){
    lcd.clear(); 
        lcd.printString("Game over!!!",5,0);
        lcd.printString("Better Luck ",2,2);
        lcd.printString("next time",2,3);
        lcd.refresh();
    
    }