This commit is contained in:
2022-05-05 21:32:35 +02:00
parent bcaa608cd3
commit a969b33c7a

View File

@@ -5,6 +5,7 @@ from window_capture import WindowCapture
from vision import Vision
from dig_overlay import DiggingOverlay
def run():
# initialize the user-class
config = UserConfigs()
@@ -15,7 +16,6 @@ def run():
vision_stun = Vision()
dig_overlay = DiggingOverlay(config)
pause = True
level = 1
@@ -45,14 +45,9 @@ def run():
if level % 2 == 0:
plot_size = plot_size - 1
p1 = int((config.returnDiggingWindowPos2()[0] / 2) + config.returnDiggingWindowPos2()[2])
p2 = int((config.returnDiggingWindowPos2()[1] / 2) + config.returnDiggingWindowPos2()[3])
# start 705 , 564 -> click
# move L D -> click
# move U , U , R, R , D , D , L , L
@@ -139,5 +134,7 @@ def run():
pause = True
break
level = level + 1
if __name__ == "__main__":
run()