Switching to next brick working. /JL

This commit is contained in:
2025-04-27 19:27:51 +02:00
parent 6cb3433259
commit ce48cb2936
2 changed files with 6 additions and 1 deletions

View File

@@ -177,7 +177,9 @@ class Tetris:
self.current.drop()
case self.fall_timer:
self.current.update()
if not self.current.update():
self.current = self.next
self.next = Brick(brick = randrange(0, len(BRICKS)))
# Handle hotplugging
case pygame.JOYDEVICEADDED: