summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBoredGuy <osome3717@gmail.com>2025-09-11 12:50:08 -0700
committerBoredGuy <osome3717@gmail.com>2025-09-11 12:50:08 -0700
commit97b60a12642473a0a29bc1ce567aae487f576c7e (patch)
treebe05cb1fb6cda9323489387db24f63232f8d5aa9 /include
parentc326d6c5297667304cec5f78eede6e3c94163431 (diff)
Added gitignore and windows compatabilitymaster
Diffstat (limited to 'include')
-rw-r--r--include/barrel_data.h8
-rw-r--r--include/player_data.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/include/barrel_data.h b/include/barrel_data.h
index 8dbfd5e..8c611b7 100644
--- a/include/barrel_data.h
+++ b/include/barrel_data.h
@@ -1,27 +1,27 @@
#include "barrel.h"
-static Rectangle physicsCollider = (Rectangle) {
+static Rectangle physicsCollider = {
.x = NO_OFFSET,
.y = NO_OFFSET,
.width = 100,
.height = 120
};
-static Rectangle destRect = (Rectangle) {
+static Rectangle destRect = {
.x = -65,
.y = -140,
.width = 230,
.height = 300
};
-static Rectangle srcRect = (Rectangle) {
+static Rectangle srcRect = {
.x = 0,
.y = 0,
.width = 32,
.height = 32
};
-static Rectangle srcRectDamaged = (Rectangle) {
+static Rectangle srcRectDamaged = {
.x = 32,
.y = 0,
.width = 32,
diff --git a/include/player_data.h b/include/player_data.h
index 7df3c77..c4a3148 100644
--- a/include/player_data.h
+++ b/include/player_data.h
@@ -5,21 +5,21 @@
#define PLAYER_SPEED 300.0f
-Rectangle shadowDestRect = (Rectangle) {
+Rectangle shadowDestRect = {
.x = -20,
.y = 115,
.width = 128,
.height = 20
};
-Rectangle physicsCollider = (Rectangle) {
+Rectangle physicsCollider = {
.x = NO_OFFSET,
.y = NO_OFFSET,
.width = 100,
.height = 100
};
-Rectangle bodyDestRect = (Rectangle) {
+Rectangle bodyDestRect = {
.x = -160,
.y = -280,
.width = 400,
@@ -29,7 +29,7 @@ Rectangle bodyDestRect = (Rectangle) {
#define HITBOX_XPOS 70
#define HITBOX_XPOS_FLIPPED -90
-Rectangle punchHitBox = (Rectangle) {
+Rectangle punchHitBox = {
.x = HITBOX_XPOS,
.y = -5,
.width = 100,