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:
- 2:8410e09b77aa
- Parent:
- 1:43fbcc3584d6
- Child:
- 3:fc9133faec7a
--- a/Catch_Model.h Fri Mar 17 15:35:48 2017 +0000 +++ b/Catch_Model.h Sat Mar 18 14:06:17 2017 +0000 @@ -18,6 +18,9 @@ void input(Gamepad &pad); void update(Gamepad &pad); void draw(N5110 &lcd); + void check_basket_catch(N5110 &lcd); + void check_basket_miss(); + private: @@ -28,6 +31,9 @@ int _basket_width; int _objects_speed; + int basket_pos; + int objects_pos; + Direction _d; float _mag;