flappy init

This commit is contained in:
2023-07-28 15:28:25 +02:00
parent 545127dcbc
commit 189b81b3a0
2 changed files with 15 additions and 8 deletions

View File

@@ -18,10 +18,11 @@ class Flappy(GameBase):
while True:
if self.overlay.run_mode == 'stopped' or self.overlay.run_mode == 'paused':
return
pydirectinput.mouseDown()
cv.waitKey(50)
pydirectinput.mouseUp()
cv.waitKey(wait_timer)
cv.waitKey(int(wait_timer))
if self.flappy_pos_disc.next_gate_height[0] is not 0:
offset = (self.flappy_pos_disc.next_gate_height[0] + 120) - self.flappy_pos_disc.current_pet_height
print(offset)