MCPcopy Create free account
hub / github.com/ActiveState/code / score

Function score

recipes/Python/578996_Snake_the_game/recipe-578996.py:92–95  ·  view source on GitHub ↗
(score)

Source from the content-addressed store, hash-verified

90 clock.tick(5)
91
92def score(score):
93
94 text=smallfont.render("Score: "+str(score),True,black)
95 gameDisplay.blit(text,[0,0])
96
97
98def randAppleGen():

Callers 1

gameLoopFunction · 0.85

Calls 2

strFunction · 0.85
renderMethod · 0.45

Tested by

no test coverage detected