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.
Diff: main.cpp
- Revision:
- 33:3894a7f846a0
- Parent:
- 20:c4e6941c98e2
--- a/main.cpp Wed May 08 23:46:49 2019 +0000
+++ b/main.cpp Thu May 09 10:46:03 2019 +0000
@@ -146,8 +146,8 @@
if (pad.check_event(Gamepad::A_PRESSED) == true) {
if (menu_option_pos == 0) { // Start Game option.
// printf("GameEngine");
- eng.gameengine_run(pad, lcd, barrel, banana, dky); // Runs the main game loop in the GameEngine class.
- eng.gameengine_score(pad, lcd, banana); // When gameover is reached, runs the end game screen.
+ eng.gameengine_run(pad, lcd, barrel, banana, dky, opt); // Runs the main game loop in the GameEngine class.
+ eng.gameengine_score(pad, lcd, banana, high); // When gameover is reached, runs the end game screen.
}
if (menu_option_pos == 1) { // Controls option.
// printf("Controls");