Class containing methods to draw a ball within the maze game with the specified position, size and fill style parameters.

Revision:
1:ba8bb10ebd5a
Parent:
0:4c58ed26b6ea
Child:
2:bcb96ab2848b
--- a/Ball.h	Tue Apr 04 10:30:48 2017 +0000
+++ b/Ball.h	Fri Apr 07 10:29:08 2017 +0000
@@ -1,6 +1,6 @@
 //
 //  ball.h
-//  
+//
 //
 //  Created by Max Houghton on 19/03/2017.
 //
@@ -14,6 +14,8 @@
 #include "Gamepad.h"
 #include "Maze.h"
 
+#define SPEED 1
+
 class Ball
 {
     
@@ -22,10 +24,14 @@
     Ball();
     ~Ball();
     
-    void draw(N5110 &lcd, int x, int y, int radius);
+    void init(int x, int y, int radius);
+    void update();
+    void draw(N5110 &lcd);
     
 private:
     
+    Vector2D velocity;
+    
     int _radius;
     int _x;
     int _y;