Dependencies:   mbed

On Minerva

Revision:
15:3571beaaeed8
Parent:
14:42b8a91e463c
Child:
16:cf2bfada3adf
--- a/main.cpp	Fri May 15 08:04:39 2020 +0000
+++ b/main.cpp	Fri May 15 12:21:45 2020 +0000
@@ -18,7 +18,7 @@
 #include "shot.h"
 #include "Collision.h"
 #include "Interface.h"
-# include "tests.h"
+#include "tests.h"
 
 // objects
 Gamepad pad;
@@ -90,7 +90,7 @@
         //   increase shots with a ticker
         shot.gen_shot(timer_flag,increment,max);    
         //   shot update
-        shot.update(lcd);
+        shot.draw(lcd);
         
         //   set a count down and update lcd
         update();
@@ -185,6 +185,7 @@
         interface.simple_game(lcd,pad);
         if(interface.get_sim_flag()){
             init();
+            init_value();
             main_game(0.5,30);
         }
     }