import pygame ### initialization width = 640 height = 480 screen = pygame.display.set_mode((width,height)) # loading the balloon picture; gif file needs to be in same # folder as this file (one_balloon.py) balloon = pygame.image.load("red_balloon.gif") # convert graphics format (in this case gif) to Pygame's internal # format balloon = balloon.convert() ### the game loop keepGoing = True while (keepGoing): # deal with events for event in pygame.event.get(): if event.type == pygame.QUIT: keepGoing = False # background color screen.fill(pygame.color.Color("darkblue")) # draw picture screen.blit(balloon, (100,100)) # update display pygame.display.update() ### quit pygame.quit()