new ui elements for timing

This commit is contained in:
2022-10-19 08:53:20 +02:00
parent 8b8cc4f8e7
commit 46aeba1b1b
2 changed files with 3 additions and 1 deletions

View File

@@ -91,6 +91,7 @@ class Equipment(GameBase):
self.energy_counter = 0
def execute_main_loop(self):
start_time = time()
breaks = self.init_breaks()
for emitter in self.emitters:
while True:

View File

@@ -38,9 +38,10 @@ class Mine(GameBase):
self.execute_loop()
def execute_loop(self):
start_time = time()
breaks = self.init_breaks()
while True:
self.check_breaks()
self.check_breaks(start_time)
if self.overlay.run_mode == 'paused':
cv.waitKey(10)
self.overlay.show_mining_overlay()