From aafdfa0734b7c5dcea9f0e914ef6c66852b9d3a7 Mon Sep 17 00:00:00 2001 From: Leander Scherer Date: Thu, 12 Mar 2026 01:35:15 +0100 Subject: chore: use globals --- include/entities.h | 2 +- include/globals.h | 4 ++++ include/player.h | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 include/globals.h (limited to 'include') diff --git a/include/entities.h b/include/entities.h index 7bd38f3..b98b853 100644 --- a/include/entities.h +++ b/include/entities.h @@ -34,7 +34,7 @@ typedef struct { typedef struct { Vector2 position; Rectangle bounds; - int uniqueId; + char* uniqueId; bool active; uint32_t gid; } Key; diff --git a/include/globals.h b/include/globals.h new file mode 100644 index 0000000..bcb7d57 --- /dev/null +++ b/include/globals.h @@ -0,0 +1,4 @@ +#define SCREEN_HEIGHT 1080 +#define SCREEN_WIDTH 1920 +#define TARGET_FPS 280 +#define GAME_NAME "Dungeons" diff --git a/include/player.h b/include/player.h index 99a3ce9..b26bc20 100644 --- a/include/player.h +++ b/include/player.h @@ -5,7 +5,7 @@ #include "map.h" -typedef enum { PLAYER_IDLE, PLAYER_WALK, PLAYER_ATTACK } PlayerState; +typedef enum { PLAYER_IDLE, PLAYER_WALK, PLAYER_ATTACK, PLAYER_DIE, PLAYER_FALL } PlayerState; typedef struct { int potions; -- cgit v1.3.1