From: = <=> Date: Sat, 29 Aug 2026 11:49:06 +0000 (+0200) Subject: Fixed input buffering X-Git-Url: https://git.uwuaxy.net/sitemap.xml?a=commitdiff_plain;h=9542e29f19e15c454dcff3b0cf3b9a8b5be5d780;p=axy%2Fft%2Fpacman.git Fixed input buffering --- diff --git a/src/pacman/input.py b/src/pacman/input.py index 8675046..a245c1a 100644 --- a/src/pacman/input.py +++ b/src/pacman/input.py @@ -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]: