new ui elements for timing

This commit is contained in:
2022-10-19 00:25:59 +02:00
parent 1992c549c1
commit 90ff452e10
4 changed files with 34 additions and 23 deletions

View File

@@ -57,17 +57,6 @@ class Crops(GameBase):
self.set_color_order((GREEN, YELLOW, RED, BLUE, PURPLE))
def execute_main_loop(self):
while True:
if self.overlay.run_mode == 'paused':
cv.waitKey(1)
continue
elif self.overlay.run_mode == 'stopped':
break
self.assess_playfield_and_make_move()
cv.waitKey(500)
def set_color_order(self, order):
self.needles.clear()
self.needles = {order[0]: cv.imread("crop/green.jpg", cv.IMREAD_COLOR),