summaryrefslogtreecommitdiffstats
path: root/src/ball.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ball.h')
-rw-r--r--src/ball.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ball.h b/src/ball.h
index 232d2e3..bf96d3a 100644
--- a/src/ball.h
+++ b/src/ball.h
@@ -9,10 +9,12 @@ static const float BALL_START_Y_NORMAL = 12;
struct ball {
float x;
float y;
+ float speed;
+ float dir;
struct ball *next;
};
-struct ball *new_ball(float x, float y);
+struct ball *new_ball(float x, float y, float speed, float dir);
void free_ball(struct ball *b);
void clear_ball(struct ball *b);
void update_ball(struct ball *b);