Simple fish eat program

Dependencies:   mbed mbed-rtos N5110 ShiftReg Tone

Revision:
13:183bd19f3d7d
Parent:
12:20ac766b3175
Child:
14:f1552b691274
--- a/classes/FishEngine.cpp	Wed Apr 21 15:24:31 2021 +0000
+++ b/classes/FishEngine.cpp	Wed Apr 21 16:26:26 2021 +0000
@@ -30,11 +30,11 @@
 }
 
 //plays the game
-void FishEngine::gamePlay(N5110 &lcd, Tone &dac, Joystick &joystick){
+void FishEngine::gamePlay(N5110 &lcd, Joystick &joystick){
     game.init(lcd, 20, 20, 1); //initalise game conditions 
     do{
         DIRECTION direction = {joystick.get_direction()};
-        game.gamePlay(lcd, dac, direction);
+        game.gamePlay(lcd, direction);
         playerScore = game.Score(lcd); //updates playerScore in real time  
     }while(game.Lives() != 0);
     
@@ -103,7 +103,7 @@
             case 0:
                 if(settings.buttonA_state(ButtonA)){
                     graphics.screenFlash(lcd);
-                    gamePlay(lcd, dac, joystick);
+                    gamePlay(lcd, joystick);
                 }
                 switch(direction) {
                     case UP: