summaryrefslogtreecommitdiff
path: root/src/tower.c
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-10-12 16:07:05 -0400
committerLouie S <louie@example.com>2023-10-12 16:07:05 -0400
commit3c6cf0ed9980990ca07f6d76817814979691d65e (patch)
treebf11a53332f67b87ba6c05384eaa11cca486deb1 /src/tower.c
parent91da624fe1665f3ddb3216ebb8a56a982074228d (diff)
Pickup displaying
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;
+}