Код: Выделить всё
def bossdie():
global bosshp
if bosshp == 0:
boss.hideturtle()
timerr.goto(0,0)
timerr.write(f"You won!", font=("Candara", 32, "normal"))
time.sleep(5)
window.bye()
elif timer 0:
timerr.goto(-200, 0)
timerr.write(f"You lost, cuz boss has {100 - bosshp} hp left!", font=("Candara", 32, "normal"))
Подробнее здесь: https://stackoverflow.com/questions/793 ... t-i-have-b