added first draft litris

This commit is contained in:
2023-07-22 20:59:06 +02:00
parent 47a7a50335
commit aa2662003d
2 changed files with 3 additions and 1 deletions

View File

@@ -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:

View File

@@ -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}