summaryrefslogtreecommitdiffstats
path: root/src/ball.h
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-05-21 18:57:11 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-05-21 18:57:11 (EDT)
commita4d2b83d29a78d171deb2c6447369d94e752f2cb (patch)
treec92db91f7d00ec33fe8cab03462cdf5b7d0cf78b /src/ball.h
parent40a64ca7bf3fcae470f3af16f21597e80e23fbe3 (diff)
downloadcursespong-a4d2b83d29a78d171deb2c6447369d94e752f2cb.zip
cursespong-a4d2b83d29a78d171deb2c6447369d94e752f2cb.tar.gz
cursespong-a4d2b83d29a78d171deb2c6447369d94e752f2cb.tar.bz2
Make balls move.
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);