Uses accompanying Basket, Objects and Fruit libraries to create Fruit Basket game. If an object is caught, points are added; if an object in missed, a 'life' is lost.
Dependents: Game_Controller_Project
Diff: Catch_Model.h
- Revision:
- 15:1a0bd800f1f1
- Parent:
- 14:6764bb61d413
- Child:
- 17:20abf995c040
--- a/Catch_Model.h Thu Apr 27 12:39:53 2017 +0000 +++ b/Catch_Model.h Fri Apr 28 17:15:01 2017 +0000 @@ -134,9 +134,12 @@ * Calls draw functions from the Basket and Objects libraries as well * as functions to display the score, remaining lives and an indicator * that tells the player if the A and B buttons are ready to be used. + * Once the game is finished, a 'Game Over' screen is displayed showing + * the final score. * @param lcd - N5110 custom library + * @param pad - Gamepad custom library */ - void draw(N5110 &lcd); + void draw(N5110 &lcd, Gamepad &pad); /** Display the Number of Lives * @@ -153,6 +156,14 @@ */ void print_score(N5110 &lcd); + /** Display the Final Score + * + * Print two strings of characters to the buffer, one indicating the + * score and another saying 'Game Over'. + * @param lcd - N5110 custom library + */ + void final_score(N5110 &lcd); + /** Display the Powerup Indicator * * Print a tick or cross to the buffer, indicating whether or not