Fix osu circle size on first spawn
This commit is contained in:
10
game/osu.py
10
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>', 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
|
||||
|
||||
Reference in New Issue
Block a user