From a8b0e85079bdf3c76760da00bdc37e5362cfa883 Mon Sep 17 00:00:00 2001 From: Aliaksei Urbanski Date: Sat, 6 Jan 2024 03:03:14 +0300 Subject: [PATCH] Allow diagonal movements in the 3rd example --- examples/example3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/example3.py b/examples/example3.py index bb0b854..bb0ff51 100644 --- a/examples/example3.py +++ b/examples/example3.py @@ -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():