Log in | |
Track your progress |
Progress: Problem 1 of 7
Email Address: | Register |
Reset Password |
||
Password: | Log in |
Should the following line go inside, or outside of the main program loop?
background_image = pygame.image.load("saturn_family1.jpg").convert()
Inside the loop, because the background image needs to be redrawn every frame.
Outside the loop, because it isn't a good idea to load the image from the disk 20 times per second.
Check Answer
Next