aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Leah Alpert <lalpert@mit.edu>2011-08-28 21:45:21 -0700
committerGravatar Leah Alpert <lalpert@mit.edu>2011-08-28 21:45:21 -0700
commitc9c1bf98579995c673b56e79ea973d269320fac5 (patch)
treeee05dc240261ca0165cba577caf17f22bcae0582
parent5f8b06b04c2bd4fcc28be9f200745086000e5a6a (diff)
Added divider between level and timer. Reduced num levels to 6; game is now faster.
-rw-r--r--tetris.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/tetris.py b/tetris.py
index 53d174f..885c97f 100644
--- a/tetris.py
+++ b/tetris.py
@@ -19,16 +19,15 @@ from ddrinput import DIRECTIONS
import pygame
TIME_LIMIT = 4 * 60 #seconds
-LINES_TO_ADVANCE = 5 #num lines needed to advance to next level
-LEVEL_SPEEDS = [800,700,600,500,400,300,200,150,100,70]
+LINES_TO_ADVANCE = 8 #num lines needed to advance to next level
+LEVEL_SPEEDS = [700,550,400,250,150,110]
MAXX = 10
MAXY = 18
(LEFT, RIGHT, UP, DOWN) = range(4)
COLORS = ["orange", "red", "green", "blue", "purple", "yellow", "magenta"]
-LEVEL_COLORS = ["red", "orange red", "orange", "yellow",
- "green yellow", "green", "turquoise", "blue", "blue violet", "purple"]
+LEVEL_COLORS = ["red", "orange", "yellow", "green", "blue", "purple"]
class Board():
"""
@@ -329,8 +328,7 @@ class TetrisGame(object):
else:
self.board_animation(winner_board,"outline","yellow")
self.update_gui()
- for i in range(250):
- print i,
+ sleep(3)
def create_shapes(self,design): #in progress.....
shapes = {}