From 545127dcbcbb01bb94e0884ad19c8dbfc911cb71 Mon Sep 17 00:00:00 2001 From: Thaloria Date: Fri, 28 Jul 2023 13:26:54 +0200 Subject: [PATCH] flappy init --- flappy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flappy.py b/flappy.py index f35a05a..c0a2a84 100644 --- a/flappy.py +++ b/flappy.py @@ -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 \ No newline at end of file + 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) \ No newline at end of file