diff options
author | Louie S <louie@example.com> | 2023-10-12 16:07:05 -0400 |
---|---|---|
committer | Louie S <louie@example.com> | 2023-10-12 16:07:05 -0400 |
commit | 3c6cf0ed9980990ca07f6d76817814979691d65e (patch) | |
tree | bf11a53332f67b87ba6c05384eaa11cca486deb1 /src/tower.c | |
parent | 91da624fe1665f3ddb3216ebb8a56a982074228d (diff) |
Pickup displaying
Diffstat (limited to 'src/tower.c')
-rw-r--r-- | src/tower.c | 13 |
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; +} |