#starting pygame import sys, pygame, pygame.mixer, time from pygame.locals import * pygame.init() #screen size size = width, hight = 600, 400 #creats screen screen = pygame.display.set_mode(size) #color back_ground_color = 0, 0, 0 #loading image image = pygame.image.load("C:\Sh1tZ\Programing\madara4.png") #loading sound sound = pygame.mixer.Sound("C:\Sh1tZ\Programing\water.wav") sound.play() #coordinates x = 0 y = 0 r = 0 #loop till exit while 1: time.sleep(0.001) #event = user input for event in pygame.event.get(): if event.type == pygame.QUIT: sys.exit() #looks for keyboard press & key_escape to exit. elif event.type == KEYDOWN and event.key == K_ESCAPE: sys.exit() #elif event.type == MOUSEBUTTONDOWN: # sound.play() #time.sleep(2) #fills screen screen.fill((r, 0, 0)) #blit = pasting onto screen screen.blit(image, (x, y)) # <-- and where on the screen #re-draw's screen pygame.display.flip() x = x + 1 y = y + 1 if r == 255: r1 = -1 elif r == 0: r1 = 1 r = r + r1