Game designed for project

Dependencies:   mbed Gamepad2

Revision:
3:5ede4ac61af1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MyClasses/Ball/Ball.h	Sun May 24 09:15:25 2020 +0000
@@ -0,0 +1,29 @@
+#ifndef BALL_H
+#define BALL_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+
+class Ball 
+{
+    public:
+    
+        void init(int radius, int height, int speed);
+        void print_lcd(N5110 &lcd);
+        void set_size(int radius);
+        void set_position(int x, int y);
+        void set_velocity(Vector2D velocity);
+        void update_position();
+        Vector2D get_position();
+        Vector2D get_velocity();
+   
+    private:
+    
+        int _radius;
+        int _x;
+        int _y;
+        Vector2D _velocity;
+    
+}
+#endif
\ No newline at end of file