summaryrefslogtreecommitdiffstats
path: root/src/paddle.h
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-05-20 15:00:54 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-05-20 15:00:54 (EDT)
commit6c69108044469c2ec69ad27eb768ca4680e131e1 (patch)
treec715006bfdcbd971e042d69ffba99eee08a1591f /src/paddle.h
parent41caa6f8cafcef43ce5ac20bd18ba5ae64cf829d (diff)
downloadcursespong-6c69108044469c2ec69ad27eb768ca4680e131e1.zip
cursespong-6c69108044469c2ec69ad27eb768ca4680e131e1.tar.gz
cursespong-6c69108044469c2ec69ad27eb768ca4680e131e1.tar.bz2
Setup game, player, and paddle data structures.
Diffstat (limited to 'src/paddle.h')
-rw-r--r--src/paddle.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/paddle.h b/src/paddle.h
new file mode 100644
index 0000000..6845945
--- /dev/null
+++ b/src/paddle.h
@@ -0,0 +1,17 @@
+#ifndef PADDLE_H
+#define PADDLE_H
+
+static const char PADDLE_H_POS_START = 40;
+static const char PADDLE_V_POS_START = 12;
+static const char PADDLE_H_SIZE_NORMAL = 8;
+static const char PADDLE_V_SIZE_NORMAL = 4;
+static const char PADDLE_H_SPEED_NORMAL = 2;
+static const char PADDLE_V_SPEED_NORMAL = 1;
+
+struct paddle {
+ char pos;
+ char size;
+ char speed;
+};
+
+#endif