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
|
# Main
|
||||||
def main(c: tk.Canvas):
|
def main(c: tk.Canvas):
|
||||||
global canvas, circle
|
global canvas
|
||||||
|
|
||||||
# Ini
|
# Ini
|
||||||
canvas = c
|
canvas = c
|
||||||
c.bind('<Motion>', motion)
|
c.bind('<Motion>', motion)
|
||||||
|
|
||||||
circle = create_circle()
|
|
||||||
|
|
||||||
# Loop
|
# Loop
|
||||||
def loop(deltatime: float, difficulty: float, end):
|
def loop(deltatime: float, difficulty: float, end):
|
||||||
global tick, circle
|
global tick, circle
|
||||||
|
|
||||||
|
# First circle
|
||||||
|
if circle == None:
|
||||||
|
circle = create_circle()
|
||||||
|
|
||||||
# Step
|
# Step
|
||||||
if tick >= STEP_TICK:
|
elif tick >= STEP_TICK:
|
||||||
# Tick or end?
|
# Tick or end?
|
||||||
if circle.value == 0:
|
if circle.value == 0:
|
||||||
# Check
|
# Check
|
||||||
|
|||||||
Reference in New Issue
Block a user