import pygame import os pygame.init()
WIDTH,HEIGHT = 1200,700 YELLOW = (255,255,0)
ROCK = pygame.image.load(os.path.join("Assets","ROCK.png")) ROCK = pygame.transform.scale(ROCK,(100,100))
WIN = pygame.display.set_mode((WIDTH,HEIGHT)) pygame.display.set_caption("Rock,Paper,Scissors")
FPS = 60
def drawWindow():
WIN.fill(YELLOW)
WIN.blit(ROCK,(100,100))
pygame.display.update()
def main():
clock = pygame.time.Clock()
run = True
while run == True:
clock.tick(FPS)
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False
drawWindow()
pygame.quit()
if __name__ == "__main__":
main()
When I run this, I get the error, FileNotFoundError: No such file or directory, when the file is definitely there. Where have I gone wrong?