MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / display_score

Function display_score

Caterpillar_Game/Caterpillar.py:67–73  ·  view source on GitHub ↗
(current_score)

Source from the content-addressed store, hash-verified

65 t.onkey(start_game,'space')
66
67def display_score(current_score):
68 score_turtle.clear()
69 score_turtle.penup()
70 x = (t.window_width()/2) - 70
71 y = (t.window_height()/2) - 70
72 score_turtle.setpos(x,y)
73 score_turtle.write(str(current_score), align='right', font=('Arial', 40, 'bold'))
74
75def place_leaf():
76 leaf.hideturtle()

Callers 1

start_gameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected