summaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
authorDrNuget <drnuget@outlook.com>2025-03-03 18:38:18 +0200
committerDrNuget <drnuget@outlook.com>2025-03-03 18:38:18 +0200
commit23dac85d2f600f0073e77bf83f4a544f3a087416 (patch)
tree76fbaa200140036473c3b9bacace389c14bdcd25 /src/player.h
let the madness begin
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/player.h b/src/player.h
new file mode 100644
index 0000000..346b800
--- /dev/null
+++ b/src/player.h
@@ -0,0 +1,18 @@
+#ifndef PLAYER_H
+#define PLAYER_H
+#include <raylib.h>
+#include "entity.h"
+
+typedef struct player {
+ Vector3 pos;
+ Vector3 velocity;
+ Camera3D camera;
+ Hitbox hitbox;
+
+ float speed;
+ short is_on_floor;
+} Player;
+
+void handleMovement(Player *player);
+
+#endif