proper placement of the obstacles
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user