0

trying to follow this flappy bird game tutorial: https://www.youtube.com/watch?v=UZg49z76cLw on the part where you put a background image it returns with this error "error: FileNotFoundError: No such file or directory"

bg_surface = pygame.image.load(r"Users/Rahaf Maaalbared/Desktop/background-day.png")
screen.blit(bg_surface,(0,0))
  • The path must be relative to the working directory. The working directory can be different from the directory of the Python file. – Rabbid76 Jul 19 '21 at 14:35

0 Answers0