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: Menu/Menu.cpp
- Revision:
- 10:8bf3713d9e9c
- Parent:
- 9:fff2009f826e
- Child:
- 11:b66170249a26
--- a/Menu/Menu.cpp Sun Mar 24 19:22:50 2019 +0000 +++ b/Menu/Menu.cpp Tue Mar 26 11:03:05 2019 +0000 @@ -10,14 +10,14 @@ } void Menu::run_game_engine(N5110 &lcd, Gamepad &gamepad) { + if(_game_counter == 100) _game_counter = 0; _game_engine.check_reset(); _game_engine.read_input(gamepad); if (_game_counter % 10 == 0) _game_engine.generate_map(); - _game_engine.find_level(); + _game_engine.set_level_condition(); _game_engine.process_y(); _game_engine.process_x(_game_counter); _game_engine.process_sprite(); _game_engine.update_lcd(lcd); _game_counter++; - if(_game_counter == 100) _game_counter = 0; } \ No newline at end of file