flappy init
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user