how to make objects move using wasd controls in pygame
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit(); sys.exit()
running = False
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_LEFT:
print('left')
if event.key == pygame.K_RIGHT:
print('right')
if event.key == pygame.K_UP:
print('up')
if event.key == pygame.K_DOWN:
print('down')