import pygame from pygame.locals import * import sys pygame.init() displaySurface = pygame.display.set_mode((300, 300)) mySurface = pygame.Surface ((50, 50)) mySurface.fill((0,255,0)) mySurface2 = pygame.Surface((100, 50)) mySurface2.fill((0,255,0)) screen = pygame.display.set_mode((400, 300)) background = pygame.Surface((400,300)) pos = [175, 125] while True: for event in pygame.event.get(): if event.type == QUIT: pygame.quit() sys.exit() screen.blit(background, (0, 0)) screen.blit(mySurface, pos) pygame.display.update()