aboutsummaryrefslogtreecommitdiff
path: root/player.h
diff options
context:
space:
mode:
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);