diff --git a/litris.py b/litris.py index 0dfb68c..7d21de8 100644 --- a/litris.py +++ b/litris.py @@ -359,6 +359,7 @@ class Litris(GameBase): self.keyboard.press('e') self.keyboard.release('e') print("rotation 1 pressed: e") + cv.waitKey(40) elif rotation == 2: self.keyboard.press('e') self.keyboard.release('e') @@ -367,6 +368,7 @@ class Litris(GameBase): self.keyboard.press('e') self.keyboard.release('e') print("rotation 2 pressed: e 2") + cv.waitKey(40) elif rotation == 3: self.keyboard.press('q') self.keyboard.release('q') diff --git a/tetromino.py b/tetromino.py index 924c780..d18e60c 100644 --- a/tetromino.py +++ b/tetromino.py @@ -177,10 +177,10 @@ class Tetromino(): 'd': {0: 9, 1: 9, 2: 9, 3: 9}, 't': {0: 9, 1: 9, 2: 9, 3: 9}, 's': {0: 9, 1: 8, 2: 9, 3: 8}, - 'z': {0: 10, 1: 8, 2: 10, 3: 8}, - 'j': {0: 10, 1: 9, 2: 10, 3: 9}, + 'z': {0: 9, 1: 8, 2: 10, 3: 8}, + 'j': {0: 8, 1: 9, 2: 8, 3: 9}, 'l': {0: 8, 1: 9, 2: 8, 3: 9} - } + } return offset_map.get(self.letter)[rotation]