[Image-SIG] my solution (formerly "enough")
jlu at hep.anl.gov
Sun Aug 22 22:25:04 CEST 2010
Following a suggestion of Yuri's. with assistance from the book
"Beginning Game Development" by Will McGugan (Apress (registered)
(Berkeley, CA 2007), here is my solution to the problem of switching
images (you can substitute anything you have hadny for the images used for
"back1" and "back2":
back1 = "a_1.jpg"
back2 = "a_2.jpg"
from pygame.locals import *
from sys import exit
screen = pygame.display.set_mode((640,480), 0, 32)
back = pygame.image.load(back1).convert()
back = pygame.image.load(back2).convert()
As you can see, the image can be updated, mulotiple times.
My thanks to all who offered suggestions.
"Trust me. I have a lot of experience at this."
General Custer's unremembered message to his men,
just before leading them into the Little Big Horn Valley
More information about the Image-SIG