Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: main.cpp
- 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(); } } }