ELEC2645 (2018/19) / Mbed 2 deprecated el17set_

Dependencies:   mbed

Revision:
24:7770c7f27cdc
Parent:
22:8e38efeae0c9
Child:
26:3652bc2fe3fc
--- a/main.cpp	Thu May 09 12:15:50 2019 +0000
+++ b/main.cpp	Thu May 09 12:46:52 2019 +0000
@@ -40,14 +40,14 @@
   while (1) { 
     game.UI(lcd, pad);  // displays the menus
     game.init();
-    int lives = game.get_lives();
+    int health = game.get_health();
     
     // condition to allow for returning to // 
     // main menu on win or loss //
-    while (lives > 0) {
+    while (health > 0) {
       render();
       wait(1.0f/fps);
-      lives = game.get_lives();
+      health = game.get_health();
     }  
   }
 }