Update main.py
parent
d922132031
commit
f68b72206e
8
main.py
8
main.py
|
@ -132,13 +132,13 @@ while running:
|
|||
screen.blit(tank2, player_pos2)
|
||||
|
||||
keys = pygame.key.get_pressed()
|
||||
if keys[pygame.K_i]:
|
||||
if keys[pygame.K_UP]:
|
||||
player_pos2.y -= 300 * dt
|
||||
if keys[pygame.K_k]:
|
||||
if keys[pygame.K_DOWN]:
|
||||
player_pos2.y += 300 * dt
|
||||
if keys[pygame.K_j]:
|
||||
if keys[pygame.K_LEFT]:
|
||||
player_pos2.x -= 300 * dt
|
||||
if keys[pygame.K_l]:
|
||||
if keys[pygame.K_RIGHT]:
|
||||
player_pos2.x += 300 * dt
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue