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: Sprites/Sprites.h
- Revision:
- 65:d807f9d9d0b3
- Parent:
- 64:b373b6bf8255
--- a/Sprites/Sprites.h Thu May 09 11:45:21 2019 +0000 +++ b/Sprites/Sprites.h Thu May 09 12:08:26 2019 +0000 @@ -164,6 +164,10 @@ @return number of keys collected. */ int keys_collected(); + /** makes _keys zero + @details When game over occurs keys need to be reset to zero + */ + void zero_keys(); /** Draws level exit and detects player collision @details takes player position from get_pos() and detects if overlap between player and the exit sprite.