diff options
Diffstat (limited to 'src/ball.h')
-rw-r--r-- | src/ball.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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); |