fix: address issue with nonplaying sound and delay

This commit is contained in:
2021-06-10 20:09:05 +00:00
parent f57e4de0e5
commit b7e0737682
3 changed files with 4 additions and 2 deletions

View File

@@ -95,6 +95,7 @@ class Tetris:
self.current_piece.revert()
if event.key == pygame.K_z:
if self.current_piece:
self.current_piece.play_piece_set_sound()
self.stack.add_piece(self.current_piece)
self.__generate_piece((300, 100))