Can you copy paste this into your python editor and fix the paddles? They are not moving when you press w or s, or up arrow or down arrow. (I'm making pong) | | \ /
import pygame pygame.init() from time import sleep win = pygame.display.set_mode((500,500)) pygame.display.set_caption("PONG") black = [0, 0, 0] s = 5 win.fill(black) def mainGame(): xp = 25 yp = 0 width = 10 height = 60 xx = 450 yy = 0 ww = 10 hh = 60 movePaddle = 50 pygame.time.delay(100) if event.type == pygame.QUIT: run = False keys = pygame.key.get_pressed() if keys[pygame.K_w] and "yp != 0": yp -= movePaddle if keys[pygame.K_s] and "yp != 440": yp += movePaddle if keys[pygame.K_UP] and "yy != 0": yy -= movePaddle if keys[pygame.K_DOWN] and " yy != 440": yy += movePaddle moveBall() pygame.draw.rect(win, (255, 255, 255),(xp, yp, width, height)) pygame.draw.rect(win, (255, 255, 255),(xx, yy, ww, hh)) #Ball \/ pygame.draw.rect(win, (255, 255, 255), (y, x, bw, bh)) pygame.display.update()