# pygame basics surfaces and images import pygame, sys pygame.init() clock = pygame.time.Clock() screen = pygame.display.set_mode((800,800)) second_surface = pygame.Surface([100,200]) second_surface.fill((0,0,225)) object = pygame.image.load('attack_1.png') object_rect = object.get_rect(topleft = [100,200]) 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(object,object_rect) object_rect.right += 5 pygame.display.flip() clock.tick(60)