summaryrefslogtreecommitdiffstats
path: root/src/ball.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ball.c')
-rw-r--r--src/ball.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ball.c b/src/ball.c
index 7484950..8337106 100644
--- a/src/ball.c
+++ b/src/ball.c
@@ -1,4 +1,5 @@
#include <stdlib.h>
+#include <curses.h>
#include "ball.h"
@@ -17,3 +18,9 @@ new_ball(int x, int y)
return b;
}
+
+void
+draw_ball(struct ball *b)
+{
+ mvprintw(b->y, b->x, "o");
+}