diff options
author | Matt Turner <mattst88@gmail.com> | 2006-08-04 00:56:19 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2006-08-04 00:56:19 +0000 |
commit | f6997ebd1de555916c491dbd603f7a0e9c1d9c58 (patch) | |
tree | 23645695bcf2c9ddd154d004dfe09693139ffbf0 /ball.h | |
parent | f2837ef813150240c00741018542dc271213ff5c (diff) |
Diffstat (limited to 'ball.h')
-rw-r--r-- | ball.h | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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
|