diff --git a/game/osu.py b/game/osu.py index 3de5f79..495c65c 100644 --- a/game/osu.py +++ b/game/osu.py @@ -52,20 +52,22 @@ SECONDARY_COLOR = color.GREEN # Main def main(c: tk.Canvas): - global canvas, circle + global canvas # Ini canvas = c c.bind('', motion) - circle = create_circle() - # Loop def loop(deltatime: float, difficulty: float, end): global tick, circle + # First circle + if circle == None: + circle = create_circle() + # Step - if tick >= STEP_TICK: + elif tick >= STEP_TICK: # Tick or end? if circle.value == 0: # Check