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: Frogger/Frogger.h
- Revision:
- 53:b6bb4dab7823
- Parent:
- 52:1145e99264ea
- Child:
- 55:b17b9931c010
--- a/Frogger/Frogger.h Mon May 25 17:53:05 2020 +0000 +++ b/Frogger/Frogger.h Mon May 25 22:26:49 2020 +0000 @@ -48,6 +48,8 @@ bool end_post; bool nextLevel; bool next_goal; + + bool bonus_round; float water_level; bool frogOnLog; // attached @@ -85,9 +87,21 @@ Object level_row_one[2]; Object level_row_two[2]; Object level_row_three[3]; + + //BONUS ROUND + Object bonus_row_one[4]; + Object bonus_row_two[3]; + Object bonus_row_three[4]; + Object bonus_row_four[3]; + Object bonus_row_six[2]; + Object bonus_row_seven[2]; + Object bonus_row_eight[3]; public: void run(); + void run_bonus(); + void actOnFrogBonus(); + void checkBonusProgress(); void updateTurtleState(); void actOnFrogPos(); void home(); @@ -100,6 +114,14 @@ void drownedFrog(); void checkFrogAction(Object log); void setupLevelTwoRows(); + + void runBonusRound(); + void setupBonusRows(); + void setupBonusXpos(); + void setupBonusTwoDir(); + void setupBonusSprites(); + void moveBonusObjects(); + void moveFrogWithLog(Object log); void checkTurtleDrown();