08 January, 2022 - 12:21 AM
if left:
player_rect.x -= velocity
if right:
player_rect.x += velocity
if up:
player_rect.y -= velocity
if down:
player_rect.y += velocity
player_rect.x -= velocity
if right:
player_rect.x += velocity
if up:
player_rect.y -= velocity
if down:
player_rect.y += velocity