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: Gameengine/Gameengine.cpp
- Revision:
- 65:d807f9d9d0b3
- Parent:
- 63:ec95e155fb30
--- a/Gameengine/Gameengine.cpp Thu May 09 11:45:21 2019 +0000
+++ b/Gameengine/Gameengine.cpp Thu May 09 12:08:26 2019 +0000
@@ -16,7 +16,8 @@
_sprites.miner_init(3, 37); //start position of player
_lives = 3; // starting lives
_time = 120; // time to complete each level
- _t.reset();
+ _t.reset(); // resets timer to zero
+ _sprites.zero_keys(); // resets keys collected to zero
}
// updates player position and interaction with level objects
void Gameengine::update(N5110 &lcd, Gamepad &pad)