Simple fish eat program
Dependencies: mbed mbed-rtos N5110 ShiftReg Tone
Diff: classes/Graphics.h
- Revision:
- 12:20ac766b3175
- Parent:
- 10:e221bd1ce3ec
- Child:
- 14:f1552b691274
diff -r 7c1e2a9303d3 -r 20ac766b3175 classes/Graphics.h --- a/classes/Graphics.h Wed Apr 21 11:08:02 2021 +0000 +++ b/classes/Graphics.h Wed Apr 21 15:24:31 2021 +0000 @@ -6,12 +6,26 @@ class Graphics { public: - void titleScreen(N5110 &lcd); //creates the game title screen - void confirmationScreen(N5110 &lcd); //waits for player to press A + //creates the game title screen + void titleScreen(N5110 &lcd); + + //waits for player to press A + void confirmationScreen(N5110 &lcd); /* If the ScreenFlash function doesnt operate as intended check that the LCD * screen its self is seated correctly as this seems to be an issue*/ - void screenFlash(N5110 &lcd); //flashes LCD screen + + //flashes LCD screen + void screenFlash(N5110 &lcd); + + //displays new high score screen + void newHighscore(N5110 &lcd, int score); + + //displays playing instructions + void playerInstruc(N5110 &lcd); + + //gameover screen + void gameOver(N5110 &lcd); //player fish void Fish_1(N5110 &lcd, int _x, int _y); //draws fish 1 (smallest fish) @@ -19,16 +33,16 @@ void Fish_3(N5110 &lcd, int _x, int _y); //draws fish 3 void Fish_4(N5110 &lcd, int _x, int _y); //draws fish 4 (largest fish) - void upArrow(N5110 &lcd); // draws menu arrow - void downArrow(N5110 &lcd); // draws menu arrow - void leftArrow(N5110 &lcd); // draws menu arrow - void rightArrow(N5110 &lcd); // draws menu arrow - //enemy fish void E_Fish_1(N5110 &lcd, int _x, int _y); //draws fish 1 (smallest fish void E_Fish_2(N5110 &lcd, int _x, int _y); //draws fish 2 void E_Fish_3(N5110 &lcd, int _x, int _y); //draws fish 3 void E_Fish_4(N5110 &lcd, int _x, int _y); //draws fish 4 (largest fish) + +private: + int i; + char writeScore2[14]; + int stringCon2; }; #endif \ No newline at end of file