Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #58 from Jamim/feature/example-3-diagonal
Browse files Browse the repository at this point in the history
Allow diagonal movements in the 3rd example
  • Loading branch information
dimkauzh authored Jan 6, 2024
2 parents b9d1e74 + a8b0e85 commit 0e5eb99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/example3.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def loop():
elif fusion.Key(fusion.KEY_DOWN).key_down():
player.y = int(player.y + speed)

elif fusion.Key(fusion.KEY_RIGHT).key_down():
if fusion.Key(fusion.KEY_RIGHT).key_down():
player.x = int(player.x + speed)

elif fusion.Key(fusion.KEY_LEFT).key_down():
Expand Down

0 comments on commit 0e5eb99

Please sign in to comment.