permit to move piece before game over

This commit is contained in:
Adrien MALINGREY 2019-10-08 08:42:15 +02:00
parent 8e6359bfa3
commit 0815409953

View File

@ -209,16 +209,11 @@ class TetrisLogic:
self.matrix.piece.coord = self.MATRIX_PIECE_COORD
self.matrix.ghost = self.matrix.piece.ghost()
self.refresh_ghost()
# if self.pressed_actions:
# self.timer.postpone(self.repeat_action, self.AUTOREPEAT_DELAY)
self.on_generation_phase(
self.matrix, self.matrix.piece, self.matrix.ghost, self.next.pieces
)
if self.move(Movement.DOWN):
self.falling_phase()
else:
self.game_over()
def refresh_ghost(self):
self.matrix.ghost.coord = self.matrix.piece.coord