From aa2662003d66a13d8532bd7f76fdb3232d2756ac Mon Sep 17 00:00:00 2001 From: Thaloria Date: Sat, 22 Jul 2023 20:59:06 +0200 Subject: [PATCH] added first draft litris --- litris.py | 2 ++ tetromino.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/litris.py b/litris.py index 2752df0..5611c97 100644 --- a/litris.py +++ b/litris.py @@ -210,6 +210,8 @@ class Litris(GameBase): if self.overlay.run_mode == 'stopped' or self.overlay.run_mode == 'paused': return continue + self.keyboard.press(Key.down) + self.keyboard.release(Key.down) points = self.vision_stun.get_click_points(rectangles) for point in points: diff --git a/tetromino.py b/tetromino.py index 9d4f0c9..924c780 100644 --- a/tetromino.py +++ b/tetromino.py @@ -176,7 +176,7 @@ class Tetromino(): 'o': {0: 9, 1: 9, 2: 9, 3: 9}, 'd': {0: 9, 1: 9, 2: 9, 3: 9}, 't': {0: 9, 1: 9, 2: 9, 3: 9}, - 's': {0: 10, 1: 8, 2: 10, 3: 8}, + '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}, 'l': {0: 8, 1: 9, 2: 8, 3: 9}