James Cummins / Mbed 2 deprecated el17jnc

Dependencies:   mbed

Revision:
23:61fa82f76808
Parent:
22:4e305ff8a050
Child:
24:c6415cc74b17
--- a/main.cpp	Thu Apr 18 11:50:53 2019 +0000
+++ b/main.cpp	Thu Apr 18 22:56:34 2019 +0000
@@ -41,6 +41,7 @@
 StartOption menu();
 void init();
 void print_start_menu(int output);
+Ball ball;
 
 
 ////////////////Main Function/////////////////
@@ -53,8 +54,8 @@
     while(1){
         StartOption choice_selected = menu();
         if(choice_selected == CLASSIC){ /*engine.classic_mode(accelerometer, gamepad, lcd, fps);*/}
-        if(choice_selected == BRICKBREAKER){ brick.brickbreaker_mode(accelerometer, gamepad, lcd, randnoise, fps);}
-        if(choice_selected == OPTIONS){ opt.options_menu(gamepad, lcd);}
+        if(choice_selected == BRICKBREAKER){ brick.brickbreaker_mode(accelerometer, gamepad, lcd, randnoise, fps, ball);}
+        if(choice_selected == OPTIONS){ opt.options_menu(gamepad, lcd, ball);}
     }
 }
   
@@ -66,7 +67,7 @@
     gamepad.init();
     lcd.init();
     lcd.setContrast(0.55);
-    brick.init(RADIUS);
+    brick.init(RADIUS, ball);
     opt.init();
     accelerometer.init();
     wait(1);