Simple fish eat program

Dependencies:   mbed mbed-rtos N5110 ShiftReg Tone

Committer:
el18a2k
Date:
Mon Mar 22 15:54:04 2021 +0000
Revision:
2:532b0225519f
Parent:
1:7dfa61225fcf
Child:
4:db929dab4f13
Main menu created and implemented successfully

Who changed what in which revision?

UserRevisionLine numberNew contents of line
el18a2k 1:7dfa61225fcf 1 #ifndef FISHENGINE_H
el18a2k 1:7dfa61225fcf 2 #define FISHENGINE_H
el18a2k 1:7dfa61225fcf 3
el18a2k 1:7dfa61225fcf 4 #include "N5110.h"
el18a2k 1:7dfa61225fcf 5 #include "Tone.h"
el18a2k 1:7dfa61225fcf 6 #include "ShiftReg.h"
el18a2k 2:532b0225519f 7 #include "Joystick.h"
el18a2k 1:7dfa61225fcf 8
el18a2k 1:7dfa61225fcf 9 #include "Graphics.h"
el18a2k 1:7dfa61225fcf 10
el18a2k 1:7dfa61225fcf 11 class FishEngine {
el18a2k 1:7dfa61225fcf 12
el18a2k 1:7dfa61225fcf 13 public:
el18a2k 2:532b0225519f 14 //initializes the board
el18a2k 2:532b0225519f 15 void system_init(N5110 &lcd, Tone &dac, Joystick &joystick);//passes N5110 and points to lcd, passes Tone and points to dac ect...
el18a2k 2:532b0225519f 16
el18a2k 2:532b0225519f 17 //calls the title sequence
el18a2k 1:7dfa61225fcf 18 void titleSequence(N5110 &lcd);
el18a2k 2:532b0225519f 19
el18a2k 2:532b0225519f 20 //call the games main menu
el18a2k 2:532b0225519f 21 void mainMenu(N5110 &lcd, Tone &dac, Joystick &joystick);
el18a2k 2:532b0225519f 22
el18a2k 2:532b0225519f 23 void gamePlay();
el18a2k 2:532b0225519f 24 void highScore();
el18a2k 2:532b0225519f 25 void Settings(N5110 &lcd, Tone &dac);
el18a2k 1:7dfa61225fcf 26 };
el18a2k 1:7dfa61225fcf 27
el18a2k 1:7dfa61225fcf 28 #endif