summaryrefslogtreecommitdiff
path: root/include/player_data.h
diff options
context:
space:
mode:
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_