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

Revision:
0:8d02400f792a
Child:
1:43fbcc3584d6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Catch_Model.h	Tue Mar 14 10:50:52 2017 +0000
@@ -0,0 +1,33 @@
+#ifndef CATCH_MODEL_H
+#define CATCH_MODEL_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+#include "Basket.h"
+
+class Catch_Model
+{
+    public:
+    
+    Catch_Model();
+    ~Catch_Model();
+    
+    void init(int basket_y, int basket_width);
+    void input(Gamepad &pad);
+    void update(Gamepad &pad);
+    void draw(N5110 &lcd);
+    
+    private:
+    
+    Basket _basket;
+    
+    int _basket_y;
+    int _basket_width;
+    
+    Direction _d;
+    float _mag;
+    Gamepad _pad;
+    
+};
+#endif
\ No newline at end of file