diff options
author | P. J. McDermott <pjm@nac.net> | 2013-05-21 17:50:37 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-05-21 17:50:37 (EDT) |
commit | d97f66ef26c89c8bd805cdeafffa959c91ec278b (patch) | |
tree | 96bf1eabfaece5ad310210dd40ea7f08543a15e0 /src/ball.h | |
parent | a9c64a158c369bc370c14dd87567fc030fa050e0 (diff) | |
download | cursespong-d97f66ef26c89c8bd805cdeafffa959c91ec278b.zip cursespong-d97f66ef26c89c8bd805cdeafffa959c91ec278b.tar.gz cursespong-d97f66ef26c89c8bd805cdeafffa959c91ec278b.tar.bz2 |
Add (stationary and invisible) balls to the board.
Diffstat (limited to 'src/ball.h')
-rw-r--r-- | src/ball.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/ball.h b/src/ball.h new file mode 100644 index 0000000..c2be172 --- /dev/null +++ b/src/ball.h @@ -0,0 +1,17 @@ +#ifndef BALL_H +#define BALL_H + +#include "board.h" + +static const int BALL_START_X_NORMAL = 40; +static const int BALL_START_Y_NORMAL = 12; + +struct ball { + int x; + int y; + struct ball *next; +}; + +struct ball *new_ball(int x, int y); + +#endif |