import pygame
import pygame, sys
pygame.init()
screen = pygame.display.set_mode((576,1024))
clock = pygame.time.Clock()
bg_surface = pygame.image.load('background-day.png')
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()
screen.blit(bg_surface (0,0))
pygame.display.update()
clock.tick(120)
When running the code only a black screen shows and I cannot see my surface.
It shows that the problem is that "This code is unreachable" under the screen.blit
line
If anyone knows how to fix this it would really help, Thank you