diff options
| author | BoredGuy <osome3717@gmail.com> | 2025-09-11 12:50:08 -0700 |
|---|---|---|
| committer | BoredGuy <osome3717@gmail.com> | 2025-09-11 12:50:08 -0700 |
| commit | 97b60a12642473a0a29bc1ce567aae487f576c7e (patch) | |
| tree | be05cb1fb6cda9323489387db24f63232f8d5aa9 | |
| parent | c326d6c5297667304cec5f78eede6e3c94163431 (diff) | |
Added gitignore and windows compatabilitymaster
| -rw-r--r-- | .gitignore | 4 | ||||
| -rw-r--r-- | include/barrel_data.h | 8 | ||||
| -rw-r--r-- | include/player_data.h | 8 |
3 files changed, 12 insertions, 8 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..70c6ef3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +# Idk man + +build/ +.vscode
\ No newline at end of file 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, |
