aboutsummaryrefslogtreecommitdiff
path: root/player.h
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeff@approximatrix.com>2020-02-14 13:40:57 -0500
committerJeffrey Armstrong <jeff@approximatrix.com>2020-02-14 13:40:57 -0500
commitc985a721b719ee97850498e9edd838ae3de52098 (patch)
tree598626dbc81db7012e16a60ac5b154a5dc024262 /player.h
parent1ece8dde054d3c7a54a661c5e75aa3ef2f8ec281 (diff)
downloadgemworm-c985a721b719ee97850498e9edd838ae3de52098.zip
gemworm-c985a721b719ee97850498e9edd838ae3de52098.tar.gz
Fixed in-game resizing and all event loop handling in general. Fixed menu reset after completing work.
Diffstat (limited to 'player.h')
-rw-r--r--player.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/player.h b/player.h
index ea04edf..acf8030 100644
--- a/player.h
+++ b/player.h
@@ -21,27 +21,27 @@
#define __PLHEADERS
typedef struct {
- char c_x;
- char c_y;
- void *next;
+ char c_x;
+ char c_y;
+ void *next;
} WUNIT;
typedef struct {
- int length;
- WUNIT *head;
- char dir;
- int grow;
+ int length;
+ WUNIT *head;
+ char dir;
+ int grow;
} WPLAYER;
-#define WUP 0
-#define WDOWN 1
-#define WLEFT 2
-#define WRIGHT 3
+#define WUP 0
+#define WDOWN 1
+#define WLEFT 2
+#define WRIGHT 3
-#define ALIVE 1
-#define DEAD 0
+#define ALIVE 1
+#define DEAD 0
-#define STARTLENGTH 6
+#define STARTLENGTH 6
void move_player(WPLAYER *player, char dir);