Simple fish eat program
Dependencies: mbed mbed-rtos N5110 ShiftReg Tone
classes/Graphics.h
- Committer:
- el18a2k
- Date:
- 2021-04-21
- Revision:
- 12:20ac766b3175
- Parent:
- 10:e221bd1ce3ec
- Child:
- 14:f1552b691274
File content as of revision 12:20ac766b3175:
#ifndef GRAPHICS_H #define GRAPHICS_H #include "N5110.h" class Graphics { public: //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*/ //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) void Fish_2(N5110 &lcd, int _x, int _y); //draws fish 2 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) //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