summaryrefslogtreecommitdiff
path: root/ball.h
diff options
context:
space:
mode:
Diffstat (limited to 'ball.h')
-rw-r--r--ball.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/ball.h b/ball.h
new file mode 100644
index 0000000..8a97e54
--- /dev/null
+++ b/ball.h
@@ -0,0 +1,20 @@
+#ifndef BALL_H
+#define BALL_H
+
+#include "SDL.h"
+#include "SDL_image.h"
+
+typedef struct {
+ SDL_Surface * Surface;
+ SDL_Rect Rect;
+ Sint8 xv;
+ Sint8 yv;
+ Uint8 absolute;
+ Uint8 counter;
+} Ball_t;
+
+Ball_t * CreateBall(const char * image);
+void DrawBall(Ball_t * Ball);
+void DeleteBall(Ball_t * Ball);
+
+#endif