]> Untitled Git - axy/ft/pacman.git/commitdiff
Fixed input buffering
author= <=>
Sat, 29 Aug 2026 11:49:06 +0000 (13:49 +0200)
committer= <=>
Sat, 29 Aug 2026 11:49:06 +0000 (13:49 +0200)
src/pacman/input.py

index 8675046e1c834d10c7ca09197fddd1911846370a..a245c1a1c1b42224f58a6c9380805cb7db3fb35d 100644 (file)
@@ -66,7 +66,7 @@ class GameInput(Input):
     @override
     def get_key(self, keys: pygame.key.ScancodeWrapper) -> None:
         if keys[pygame.K_UP] or keys[pygame.K_w]:
-            self.move = (0, -1)
+            self.next_move = (0, -1)
         elif keys[pygame.K_DOWN] or keys[pygame.K_s]:
             self.next_move = (0, 1)
         elif keys[pygame.K_LEFT] or keys[pygame.K_a]: