Working on getting falled brick to stay in place. /JL
This commit is contained in:
@@ -10,7 +10,7 @@ from dropzone import DropZone
|
||||
from dropnext import DropNext
|
||||
from hud import Hud
|
||||
|
||||
__version__ = "0.1.1"
|
||||
__version__ = "0.1.2"
|
||||
|
||||
# Constants
|
||||
HAT_REPEAT_DELAY = 0 # milliseconds before first repeat
|
||||
@@ -178,6 +178,7 @@ class Tetris:
|
||||
|
||||
case self.fall_timer:
|
||||
if not self.current.update():
|
||||
self.dropzone.lock(self.current)
|
||||
self.current = self.next
|
||||
self.next = Brick(brick = randrange(0, len(BRICKS)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user