Skip to content

Commit

Permalink
son
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoreis65 committed Jun 15, 2020
1 parent c5d16f6 commit 179e9c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"python.pythonPath": "C:\\Users\\Andressa SO\\anaconda3\\python.exe"
"python.pythonPath": "C:\\Users\\enric\\anaconda3\\python.exe"
}
6 changes: 4 additions & 2 deletions code.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,11 +640,13 @@ def jogando(self):
# Dependendo da tecla, altera a velocidade.
if event.key == pygame.K_a:
player.ultimo_lado=-4.0
andandosound.play()
if player.estado!=helando:
andandosound.play()
player.speedx -= 4.0
if event.key == pygame.K_d:
player.ultimo_lado=4.0
andandosound.play()
if player.estado!=helando:
andandosound.play()
player.speedx += 4.0
if event.key == pygame.K_SPACE:
player.pulo()
Expand Down

0 comments on commit 179e9c7

Please sign in to comment.