fix: address issue with nonplaying sound and delay

This commit is contained in:
Giovani Rodriguez
2021-06-10 20:09:05 +00:00
parent 5cf73ceb7d
commit 231c19c7fd
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))