diff options
author | P. 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) |
commit | a4d2b83d29a78d171deb2c6447369d94e752f2cb (patch) | |
tree | c92db91f7d00ec33fe8cab03462cdf5b7d0cf78b /src/ball.h | |
parent | 40a64ca7bf3fcae470f3af16f21597e80e23fbe3 (diff) | |
download | cursespong-a4d2b83d29a78d171deb2c6447369d94e752f2cb.zip cursespong-a4d2b83d29a78d171deb2c6447369d94e752f2cb.tar.gz cursespong-a4d2b83d29a78d171deb2c6447369d94e752f2cb.tar.bz2 |
Make balls move.
Diffstat (limited to 'src/ball.h')
-rw-r--r-- | src/ball.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |