update flappy

This commit is contained in:
2023-07-30 15:05:47 +02:00
parent 99a2976b61
commit c1eecfd567
2 changed files with 4 additions and 4 deletions

View File

@@ -52,8 +52,8 @@ class FlappyPosDiscovery(threading.Thread):
if len(rectangles_f) is not 0:
self.current_pet_height.append(rectangles_f[0][1] + rectangles_f[0][3] + self.offset_down)
if len(self.next_gate_height) > 5:
self.next_gate_height.pop(0)
if len(self.current_pet_height) > 5:
self.current_pet_height.pop(0)
#print("pet_pos: ", self.current_pet_height)
#print("next gate: ", self.next_gate_height)