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

Function score

Snake_game/main.py:30–34  ·  view source on GitHub ↗
(score)

Source from the content-addressed store, hash-verified

28
29# Render Score Label
30def score(score):
31 # Size and font of score label (Top-Left)
32 score_font = pygame.font.SysFont("arial", 15)
33 value = score_font.render(" Score: " + str(score), True, white)
34 display.blit(value, [0, 0])
35
36# Render Snake body
37def snake(snake_block, snake_list):

Callers 1

gameLoopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected