flappy init

This commit is contained in:
2023-07-28 13:26:54 +02:00
parent bfd8690535
commit 545127dcbc

View File

@@ -23,4 +23,6 @@ class Flappy(GameBase):
pydirectinput.mouseUp()
cv.waitKey(wait_timer)
if self.flappy_pos_disc.next_gate_height[0] is not 0:
wait_timer = wait_timer + (self.flappy_pos_disc.next_gate_height[0] + 120) - self.flappy_pos_disc.current_pet_height
offset = (self.flappy_pos_disc.next_gate_height[0] + 120) - self.flappy_pos_disc.current_pet_height
print(offset)
wait_timer = wait_timer - (offset / 2)