Zeyu Feng 201377605

Dependencies:   mbed

On Minerva

Revision:
5:6774b7272e85
Parent:
4:b12a49f0b730
Child:
6:dce38fe4e092
--- a/main.cpp	Tue Apr 14 05:47:23 2020 +0000
+++ b/main.cpp	Tue Apr 14 06:39:11 2020 +0000
@@ -33,7 +33,7 @@
     engine.init();
     pad.init();
     lcd.refresh();
-    shot.gen_shot();
+    shot.init(lcd);
     
     //a infinite loop to control position of the people, update the game state
     while(1) {
@@ -44,11 +44,11 @@
         engine.draw(lcd);
         //   shot
         //shot.gen_shot();
-        shot.draw(lcd);
-        shot.shot_move();
+        //shot.draw(lcd);
+        shot.update(lcd);
         lcd.refresh();
         printf("shot changes\n");
-        wait_ms(100);//fps = 10
+        wait_ms(200);//fps = 10
 
     }