import pygame, sys #general setup pygame.init() clock = pygame.time.Clock() # create a display screen = pygame.display.set_mode((800,800)) second_surface = pygame.surface([100,200]) second_surface.fill((0,0,255)) kitten = pygame.image.load('kitten.png') kitten_rect = kitten.get_rect() while True: for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() sys.exit() screen.fill((255,255,255)) screen.blit(second_surface,(0,50)) screen.blit(kitten,(100,200)) kitten_rect.right += 5 pygame.display.flip() clock.tick(60)