flappy init
This commit is contained in:
@@ -23,4 +23,6 @@ class Flappy(GameBase):
|
|||||||
pydirectinput.mouseUp()
|
pydirectinput.mouseUp()
|
||||||
cv.waitKey(wait_timer)
|
cv.waitKey(wait_timer)
|
||||||
if self.flappy_pos_disc.next_gate_height[0] is not 0:
|
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)
|
||||||
Reference in New Issue
Block a user