Arturs Kozlovskis / Mbed 2 deprecated ELEC2645_Project_el18ak

Dependencies:   mbed

Revision:
18:8f7291885e19
Parent:
17:cb208b15be5c
Child:
19:913d123554ee
diff -r cb208b15be5c -r 8f7291885e19 main.cpp
--- a/main.cpp	Thu May 07 10:36:39 2020 +0000
+++ b/main.cpp	Sat May 09 08:19:00 2020 +0000
@@ -30,6 +30,7 @@
 void initialise();
 void game();
 
+
 //variables
 bool game_check = false;
 bool game_playing = false;
@@ -40,6 +41,8 @@
     initialise();
     menu.first_screen();
     while(1) {
+        //menu
+        menu.menu_screen();
         //create the game
         game();
     }
@@ -48,7 +51,7 @@
 void initialise()
 {
     pad.init();//initialises the gamepad
-    lcd.init();//initialises the N5100 screen
+    lcd.init();//initialises the N5110 screen
     lcd.clear();
 
 }
@@ -59,6 +62,7 @@
     Objects objects;
     Functions functions;
     while(game_check == false) {
+        
         lcd.clear();
 
         objects.draw_shots(lcd,pad, true);// draws the shot