python is saying that the pygame.surface thingy isnt iterable

# Set up images.
player = pygame.image.load('player2.png')
for p in player:
    playersize =(30, 30)
    player_stats = {'speed': PLAYERMOVERATE, 'surface':pygame.transform.scale(player, (PLAYERSIZE))}
playerRect = playerImage.get_rect()
baddieImage = pygame.image.load('baddie.png')


Read more here: https://stackoverflow.com/questions/66483859/python-is-saying-that-the-pygame-surface-thingy-isnt-iterable

Content Attribution

This content was originally published by pyth0n3r at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: