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

Function show_score

projects/car game/Game.py:195–197  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

193 font1 = pygame.font.Font("freesansbold.ttf", 25)
194
195 def show_score(x, y):
196 score = font1.render("SCORE: " + str(score_value), True, (255, 0, 0))
197 screen.blit(score, (x, y))
198
199 # highscore part
200 with open("highscore.txt", "r") as f:

Callers 2

gameoverFunction · 0.70
gameloopFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected