MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / draw_score

Function draw_score

projects/Tetris Game/tetrisGame.py:154–158  ·  view source on GitHub ↗

Draw the score on the screen

(screen, score, x, y)

Source from the content-addressed store, hash-verified

152
153
154def draw_score(screen, score, x, y):
155 """Draw the score on the screen"""
156 font = pygame.font.Font(None, 36)
157 text = font.render(f"Score: {score}", True, WHITE)
158 screen.blit(text, (x, y))
159
160
161def draw_game_over(screen, x, y):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected