Library that draws a basket on a Nokia N5110 LCD display and allows it to be moved left/right on the display using buttons or a joystick.

Dependents:   Game_Controller_Project

Revision:
0:7e132fca6044
Child:
1:5e564d218751
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Basket.h	Tue Mar 14 10:00:01 2017 +0000
@@ -0,0 +1,31 @@
+#ifndef BASKET_H
+#define BASKET_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+
+class Basket
+{
+    public:
+    
+    Basket();
+    ~Basket();
+    void Basket_init(int y, int width);
+    void Basket_draw(N5110 &lcd);
+    void Basket_move(Direction d, float mag, Gamepad &pad);
+    void Basket_score();
+    int get_Basket_score();
+    Vector2D Basket_position();
+    
+    private:
+    
+    int basket_y;
+    int basket_x;
+    int basket_width;
+    int basket_speed;
+    int basket_score;
+    
+};
+#endif
+    
\ No newline at end of file