Game For ECE 2035

Dependencies:   mbed wave_player 4DGL-uLCD-SE MMA8452

Revision:
5:2f34484325bc
Parent:
3:e4690ad5a4d2
Child:
6:c9695079521d
--- a/main.cpp	Tue Sep 28 13:52:11 2021 +0000
+++ b/main.cpp	Tue Oct 12 15:26:32 2021 +0000
@@ -176,7 +176,8 @@
 {
     // First things first: initialize hardware
     ASSERT_P(hardware_init() == ERROR_NONE, "Hardware init failed!");
-
+    uLCD.filled_rectangle(64, 64, 74, 74, RED); //DELETE OR COMMENT THIS LINE
+    /*<------ DELETE THIS LINE
     // Initialize the maps
     maps_init();
     init_main_map();
@@ -187,23 +188,24 @@
 
     // Initial drawing
     draw_game(true);
-
     // Main game loop
     while(1)
     {
         // Timer to measure game update speed
         Timer t; t.start();
         
-        // Actuall do the game update:
+        // Actually do the game update:
         // 1. Read inputs        
         // 2. Determine action (get_action)        
         // 3. Update game (update_game)
         // 3b. Check for game over
         // 4. Draw frame (draw_game)
+        draw_game(true);
         
         // 5. Frame delay
         t.stop();
         int dt = t.read_ms();
         if (dt < 100) wait_ms(100 - dt);
     }
+  DELETE THIS LINE  ----->*/ 
 }