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
Fork of el17ajf by
Diff: Engine/Engine.cpp
- Revision:
- 5:3efbdcb3efaf
- Parent:
- 2:0b5e289ef905
- Child:
- 6:a54df561f442
--- a/Engine/Engine.cpp Tue Mar 12 20:03:31 2019 +0000 +++ b/Engine/Engine.cpp Wed Mar 13 09:30:36 2019 +0000 @@ -1,3 +1,6 @@ +#include "Engine.h" +#include "mbed.h" + Engine::Engine() { } @@ -11,14 +14,14 @@ Input::update(); Graphics::clear(); - if (Menus::count == 0) { - game.update(); + if (/*Menus::count*/ 0 == 0) { + game->update(); } - game.draw(); + game->draw(); - if (Menus::count > 0) { - Menus::updateAndDraw(); + if (/*Menus::count*/0 > 0) { + //Menus::updateAndDraw(); } Graphics::render();