summaryrefslogtreecommitdiff
path: root/include/player_data.h
diff options
context:
space:
mode:
authorBoredGuy <osome3717@gmail.com>2025-09-10 18:49:20 +0300
committerBoredGuy <osome3717@gmail.com>2025-09-10 18:49:20 +0300
commitc2add3e23ee1b69f059d5b78e33c0a922dc1a22d (patch)
tree3781913b577f6c94172fcd864c1873df8fc87324 /include/player_data.h
parent1418b5ade374a58bfdf2e3dfee8a4263d642442f (diff)
Hitbox-Hurtbox Collisions
Diffstat (limited to 'include/player_data.h')
-rw-r--r--include/player_data.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/include/player_data.h b/include/player_data.h
index f8e937a..7df3c77 100644
--- a/include/player_data.h
+++ b/include/player_data.h
@@ -5,27 +5,37 @@
#define PLAYER_SPEED 300.0f
-static const Rectangle shadowDestRect = (Rectangle) {
+Rectangle shadowDestRect = (Rectangle) {
.x = -20,
.y = 115,
.width = 128,
.height = 20
};
-static const Rectangle physicsCollider = (Rectangle) {
+Rectangle physicsCollider = (Rectangle) {
.x = NO_OFFSET,
.y = NO_OFFSET,
.width = 100,
.height = 100
};
-static const Rectangle bodyDestRect = (Rectangle) {
+Rectangle bodyDestRect = (Rectangle) {
.x = -160,
.y = -280,
.width = 400,
.height = 400
};
+#define HITBOX_XPOS 70
+#define HITBOX_XPOS_FLIPPED -90
+
+Rectangle punchHitBox = (Rectangle) {
+ .x = HITBOX_XPOS,
+ .y = -5,
+ .width = 100,
+ .height = 40
+};
+
#define IDLE_FTIME 0.1f
#endif // PLAYER_DATA_H_