diff options
author | Leah Alpert <lalpert@mit.edu> | 2011-08-28 10:29:00 -0700 |
---|---|---|
committer | Leah Alpert <lalpert@mit.edu> | 2011-08-28 10:29:00 -0700 |
commit | 28d694cbb6aaf5d3a913e50066614ff5591c9827 (patch) | |
tree | ccbfc1f3f5650e8d73fb9de6a7075b0b4e983b5e | |
parent | ac491ae8b4c8725512cc1cc42e7e8b86e3ee5412 (diff) |
Fixed bug with timing, changed level speeds
-rw-r--r-- | tetris.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -171,7 +171,7 @@ class Player(): if (self.gs.level < NO_OF_LEVELS and self.score >= self.gs.thresholds[self.gs.level]): self.gs.level+=1 - self.gs.delay-=100 + self.gs.delay-=85 # Signal that the shape has 'landed' return False @@ -194,7 +194,7 @@ class GameState(): z_shape, s_shape,i_shape ] self.num_players = 0 self.level = 1 - self.delay = 800 + self.delay = 900 self.thresholds = range(0,100,10) self.state = "waiting" #states: waiting (between games), playing, ending self.winner = None #winning player id |