From 5a4aec1442cf06c43e2581128ecd2667ab525ea2 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Tue, 28 Apr 2026 10:00:50 +0200 Subject: Player movement --- all.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'all.h') 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 -- cgit v1.2.3