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.cpp	Tue Mar 14 10:50:52 2017 +0000
@@ -0,0 +1,35 @@
+#include "Catch_Model.h"
+
+Catch_Model::Catch_Model()
+{
+    
+}
+
+Catch_Model::~Catch_Model()
+{
+    
+}
+
+void Catch_Model::init(int basket_y, int basket_width)
+{
+    _basket_y = basket_y;
+    _basket_width = basket_width;
+    
+    _basket.Basket_init(_basket_y, _basket_width);
+}
+
+void Catch_Model::input(Gamepad &pad)
+{
+    _d = pad.get_direction();
+    _mag = pad.get_mag();
+}
+
+void Catch_Model::update(Gamepad &pad)
+{
+    _basket.Basket_move(_d, _mag, _pad);
+}
+
+void Catch_Model::draw(N5110 &lcd)
+{
+    _basket.Basket_draw(lcd);
+}