summaryrefslogtreecommitdiff
path: root/all.h
diff options
context:
space:
mode:
Diffstat (limited to 'all.h')
-rw-r--r--all.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/all.h b/all.h
index 40a19f1..ac97717 100644
--- a/all.h
+++ b/all.h
@@ -77,12 +77,28 @@ typedef struct {
// --- Game State ---
+typedef enum {
+ MOVE_NORMAL,
+ MOVE_FLY
+} MovementMode;
+
typedef struct {
Camera camera;
Model *world_models;
int world_model_count;
bool cursor_captured;
bool vsync;
+ Font font_ui;
+
+ MovementMode move_mode;
+ Vector3 pos;
+ Vector3 velocity;
+ bool is_grounded;
+ float yaw;
+ float pitch;
+ float lean_amount;
+ float crouch_amount;
+ float horizontal_speed;
} GameState;
extern GameState game;
@@ -114,4 +130,7 @@ void DrawGame(void);
bool LoadMap(const char *filename);
void UnloadMap(void);
+// Player
+void UpdatePlayer(void);
+
#endif