Simple fish eat program

Dependencies:   mbed mbed-rtos N5110 ShiftReg Tone

Committer:
el18a2k
Date:
Thu Mar 25 11:31:57 2021 +0000
Revision:
6:7aafcaf7cbe2
Parent:
5:02e7b5197827
Child:
8:fe51fbf81dee
restructured (implement sound on/off)

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 6:7aafcaf7cbe2 10 #include "Settings.h"
el18a2k 1:7dfa61225fcf 11
el18a2k 1:7dfa61225fcf 12 class FishEngine {
el18a2k 1:7dfa61225fcf 13
el18a2k 1:7dfa61225fcf 14 public:
el18a2k 2:532b0225519f 15 //initializes the board
el18a2k 2:532b0225519f 16 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 17
el18a2k 2:532b0225519f 18 //calls the title sequence
el18a2k 1:7dfa61225fcf 19 void titleSequence(N5110 &lcd);
el18a2k 2:532b0225519f 20
el18a2k 2:532b0225519f 21 //call the games main menu
el18a2k 2:532b0225519f 22 void mainMenu(N5110 &lcd, Tone &dac, Joystick &joystick);
el18a2k 2:532b0225519f 23
el18a2k 4:db929dab4f13 24 void gamePlay(N5110 &lcd, Tone &dac);
el18a2k 4:db929dab4f13 25 void highScore(N5110 &lcd);
el18a2k 4:db929dab4f13 26 void Instructions(N5110 &lcd);
el18a2k 6:7aafcaf7cbe2 27 int Settings(N5110 &lcd, Tone &dac, Joystick &joystick);
el18a2k 1:7dfa61225fcf 28 };
el18a2k 1:7dfa61225fcf 29
el18a2k 1:7dfa61225fcf 30 #endif