aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/player.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/player.h b/include/player.h
new file mode 100644
index 0000000..0c9799b
--- /dev/null
+++ b/include/player.h
@@ -0,0 +1,23 @@
+#ifndef PLAYER_H
+#define PLAYER_H
+
+#include "map_manager.h"
+#include "raylib.h"
+
+typedef struct Player {
+ Vector2 position;
+ float speed;
+ Rectangle bounds;
+
+ // Animation state
+ TmxTileset tileset;
+ int currentFrame;
+ float frameTime;
+ int state; // 0: idle, 1: walk, etc.
+ bool facingRight;
+} Player;
+
+void UpdatePlayer(Player *p, MapManager *mapMgr);
+void DrawPlayer(Player *p);
+
+#endif