Nov-28-2018, 05:39 PM
Thanks windspar,
The
But can't get the starpath to work.
This is fine a star falls from top of screen to bottom
prints a random star to screen
The
startPosX = list(range(50, 450, 50))worked.
But can't get the starpath to work.
This is fine a star falls from top of screen to bottom
starColor = pygame.image.load('purple_star.png') screen.blit(starColor, (starX, starY))This works
prints a random star to screen
imagelist = [filename for filename in cd.iterdir() if filename.suffix in ['.png', '.jpg', '.bmp']] print (random.choice(imagelist))What I want is to get the random star to fall
starColor = random.choice(imagelist) screen.blit(starColor, (starX, starY))