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

Function drawButtons

src/gamesbyexample/pygame_games/simulate.py:185–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

183
184
185def drawButtons():
186 pygame.draw.rect(DISPLAYSURF, YELLOW, YELLOWRECT)
187 pygame.draw.rect(DISPLAYSURF, BLUE, BLUERECT)
188 pygame.draw.rect(DISPLAYSURF, RED, REDRECT)
189 pygame.draw.rect(DISPLAYSURF, GREEN, GREENRECT)
190
191
192def changeBackgroundAnimation(animationSpeed=40):

Callers 3

mainFunction · 0.85
gameOverAnimationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected