MCPcopy Create free account
hub / github.com/asweigart/PythonStdioGames / drawScore

Function drawScore

src/gamesbyexample/pygame_games/wormy.py:189–193  ·  view source on GitHub ↗
(score)

Source from the content-addressed store, hash-verified

187 return
188
189def drawScore(score):
190 scoreSurf = BASICFONT.render('Score: %s' % (score), True, WHITE)
191 scoreRect = scoreSurf.get_rect()
192 scoreRect.topleft = (WINDOWWIDTH - 120, 10)
193 DISPLAYSURF.blit(scoreSurf, scoreRect)
194
195
196def drawWorm(wormCoords):

Callers 1

runGameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected