summaryrefslogtreecommitdiffstats
path: root/zoom/player.h
diff options
context:
space:
mode:
Diffstat (limited to 'zoom/player.h')
-rw-r--r--zoom/player.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/zoom/player.h b/zoom/player.h
new file mode 100644
index 0000000..200edcc
--- /dev/null
+++ b/zoom/player.h
@@ -0,0 +1,24 @@
+#ifndef GAME_PLAYER_H
+#define GAME_PLAYER_H
+
+#include "types.h"
+
+#define INPUT_UP 1
+#define INPUT_DOWN 2
+#define INPUT_RIGHT 4
+#define INPUT_LEFT 8
+#define INPUT_OPEN 16
+
+typedef struct _PLAYER {
+ VERTEX pos;
+ float rotx;
+ float rotysin, rotycos;
+ int health;
+ int shield;
+ int room;
+} PLAYER;
+
+void MouseInput(int, int);
+void DoInput(int);
+
+#endif