From 4cc4ba6bc250e8981a6fb3f6e6b96945a16628e5 Mon Sep 17 00:00:00 2001 From: Louie S Date: Tue, 24 Oct 2023 13:31:17 -0400 Subject: Working controls --- src/tower.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/tower.c') diff --git a/src/tower.c b/src/tower.c index 9220db2..6dcbc9a 100644 --- a/src/tower.c +++ b/src/tower.c @@ -1,3 +1,6 @@ +#include + +#include "ring.h" #include "tower.h" int hover_max = 2; @@ -5,9 +8,11 @@ int hover_max = 2; void hover_move_right() { ++hover; if(hover > hover_max) hover = hover_max; + if(held != NULL) held->location = hover; } void hover_move_left() { --hover; if(hover < 0) hover = 0; + if(held != NULL) held->location = hover; } -- cgit