summaryrefslogtreecommitdiff
path: root/src/tower.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tower.c')
-rw-r--r--src/tower.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tower.c b/src/tower.c
new file mode 100644
index 0000000..9220db2
--- /dev/null
+++ b/src/tower.c
@@ -0,0 +1,13 @@
+#include "tower.h"
+
+int hover_max = 2;
+
+void hover_move_right() {
+ ++hover;
+ if(hover > hover_max) hover = hover_max;
+}
+
+void hover_move_left() {
+ --hover;
+ if(hover < 0) hover = 0;
+}