aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeander Scherer <leander@schererleander.de>2026-03-12 01:35:15 +0100
committerLeander Scherer <leander@schererleander.de>2026-03-12 01:35:15 +0100
commitaafdfa0734b7c5dcea9f0e914ef6c66852b9d3a7 (patch)
tree8e20b2282b445d70d4069ecf5a62aaa02c5b0f29 /include
parentae6ac413632b427e31a26020a94864669af1ba10 (diff)
chore: use globals
Diffstat (limited to 'include')
-rw-r--r--include/entities.h2
-rw-r--r--include/globals.h4
-rw-r--r--include/player.h2
3 files changed, 6 insertions, 2 deletions
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;