27

Dependencies:   N5110

Revision:
2:9a31febe6d2f
Parent:
1:48a028c4089e
--- a/main.cpp	Fri Apr 09 06:34:43 2021 +0000
+++ b/main.cpp	Sat Apr 24 03:01:47 2021 +0000
@@ -24,6 +24,7 @@
 
 int lifes;
 int score, best_score;
+bool auto_attack;
 
 void init();
 void welcome();
@@ -55,7 +56,6 @@
 void init() {
     
     lcd.init();
-    
     lifes = 3;
     score = 0;
     
@@ -99,6 +99,19 @@
         if(button_C.read() == 1) {
               instruction();
         }
+        if(button_D.read() == 1) {
+              
+            lcd.clear();
+            
+            lcd.printString("THE LAST",18,2);
+            lcd.printString("DEFENCE",21,4);
+            
+            lcd.refresh();
+            
+            thread_sleep_for(200);
+              
+            monster.monster_main3(lcd, button_A, button_B, button_C, button_D, led1, led2, led3);
+        }
            
     }