feat: add labels

This commit is contained in:
2021-06-13 23:41:48 -04:00
parent c95077baf8
commit c9558e6b4d
2 changed files with 8 additions and 2 deletions

View File

@@ -111,6 +111,10 @@ class Piece(Entity):
self.applying_gravity = self._apply_gravity(elapsed_time, game.well, game.stack)
self.applying_set = not self.applying_gravity
"""
For more information on the piece set logic go here:
https://strategywiki.org/wiki/Tetris/Features#Lock_delay
"""
if self.applying_set:
self.applying_set = self._apply_set(elapsed_time, game)
self.applying_gravity = not self.applying_set