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:
- 7:ec6dc66ee196
- Parent:
- 6:61bcf98e0a88
- Child:
- 8:db24c475f64f
diff -r 61bcf98e0a88 -r ec6dc66ee196 Catch_Model.h --- a/Catch_Model.h Tue Apr 04 16:33:19 2017 +0000 +++ b/Catch_Model.h Wed Apr 12 14:46:51 2017 +0000 @@ -21,6 +21,8 @@ void draw(N5110 &lcd); void check_basket_catch(N5110 &lcd, Gamepad &pad); void check_basket_miss(N5110 &lcd, Gamepad &pad); + void check_abxy(N5110 &lcd, Gamepad &pad); + void set_delay(); void add_score(); int get_lives(); void print_lives(N5110 &lcd); @@ -31,11 +33,14 @@ Basket basket; Objects objects; + ABXY abxy; + Timeout timeout; int _basket_y; int _basket_width; int _objects_speed; int _lives; + int _delay; Direction _d; float _mag;