MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / move_eggs

Function move_eggs

Egg_Catcher/eggcatcher.py:54–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52
53# Function to move eggs downwards
54def move_eggs():
55 for egg in eggs:
56 (egg_x, egg_y, egg_x2, egg_y2) = c.coords(egg)
57 c.move(egg, 0, 10)
58 if egg_y2 > canvas_height:
59 egg_dropped(egg)
60 win.after(egg_speed, move_eggs)
61
62# Function to handle egg drop events
63def egg_dropped(egg):

Callers

nothing calls this directly

Calls 1

egg_droppedFunction · 0.85

Tested by

no test coverage detected