summaryrefslogtreecommitdiffstats
path: root/src/ball.h
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-05-21 18:48:53 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-05-21 18:48:53 (EDT)
commit40a64ca7bf3fcae470f3af16f21597e80e23fbe3 (patch)
treea6d7a1480bad18e4b2de3a73d05ee07c09031591 /src/ball.h
parent5280d939318c460fa9632857ee7f1c05856cb3a0 (diff)
downloadcursespong-40a64ca7bf3fcae470f3af16f21597e80e23fbe3.zip
cursespong-40a64ca7bf3fcae470f3af16f21597e80e23fbe3.tar.gz
cursespong-40a64ca7bf3fcae470f3af16f21597e80e23fbe3.tar.bz2
Store position of ball in floats.
Diffstat (limited to 'src/ball.h')
-rw-r--r--src/ball.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ball.h b/src/ball.h
index 7ba103f..232d2e3 100644
--- a/src/ball.h
+++ b/src/ball.h
@@ -3,16 +3,16 @@
#include "board.h"
-static const int BALL_START_X_NORMAL = 40;
-static const int BALL_START_Y_NORMAL = 12;
+static const float BALL_START_X_NORMAL = 40;
+static const float BALL_START_Y_NORMAL = 12;
struct ball {
- int x;
- int y;
+ float x;
+ float y;
struct ball *next;
};
-struct ball *new_ball(int x, int y);
+struct ball *new_ball(float x, float y);
void free_ball(struct ball *b);
void clear_ball(struct ball *b);
void update_ball(struct ball *b);