From 8ab5118296e09efc1210ea2d5a8eceb6de0b7868 Mon Sep 17 00:00:00 2001 From: Eveldee Date: Thu, 9 May 2019 19:12:52 +0200 Subject: [PATCH] Fix osu circle size on first spawn --- game/osu.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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