So basically I am trying to remove a gap from the top boundaries (see photo below), but how do I do it? I want to leave this very specific gap.
This is my code for boundaries:
SCREEN_WIDTH = 800
SCREEN_HEIGHT = 600
BOUNDRY_LEFT = 25
BOUNDRY_TOP = 25
BOUNDRY_RIGHT = SCREEN_WIDTH - 25
BOUNDRY_BOTTOM = SCREEN_HEIGHT - 25
And boundaries collision:
if player_rect.left < BOUNDRY_LEFT:
player_rect.left = BOUNDRY_LEFT
if player_rect.right > BOUNDRY_RIGHT:
player_rect.right = BOUNDRY_RIGHT
if player_rect.top < BOUNDRY_TOP:
player_rect.top = BOUNDRY_TOP
if player_rect.bottom > BOUNDRY_BOTTOM:
player_rect.bottom = BOUNDRY_BOTTOM