From 2bd0507141353aabae966a0e750fb5ae79fded37 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Mon, 19 May 2014 20:56:28 +0900 Subject: [PATCH] Fixing bug --- tetris.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tetris.py b/tetris.py index 60e1191..0461e65 100755 --- a/tetris.py +++ b/tetris.py @@ -287,7 +287,7 @@ class Game: lines_cleared = self.board.settle() if lines_cleared > 0: - self.score += (self.current_level() + 1) * self.line_multipliers[lines_cleared] + self.score += (self.current_level() + 1) * self.line_multipliers[lines_cleared - 1] self.lines_cleared += lines_cleared self.tetrad = self.tetrad_next.centered(self.board.grid_dims[0]) @@ -360,7 +360,7 @@ class Engine: self.ticks = ticks pygame.display.flip() - pygame.time.delay(1) + pygame.time.delay(10) event = pygame.event.poll() return self.handle_event(event)