proper placement of the obstacles

This commit is contained in:
Priec
2025-11-18 00:19:17 +01:00
parent cf30946c0d
commit 967b377e76
5 changed files with 40 additions and 29 deletions

View File

@@ -19,7 +19,7 @@ inline bool check_collision(const CharacterPosition& player,
MovementType movement,
const Obstacle& obs) {
int player_x = player.x;
int player_y = player.y;
int player_y = (VIEW_HEIGHT - player.y) - CHARACTER_WALK_FRAME_HEIGHT;
int box_x = 0, box_w = 0, box_h = 0;
switch (movement) {