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

Function drawPressKeyMsg

src/gamesbyexample/pygame_games/wormy.py:110–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108 FPSCLOCK.tick(FPS)
109
110def drawPressKeyMsg():
111 pressKeySurf = BASICFONT.render('Press a key to play.', True, DARKGRAY)
112 pressKeyRect = pressKeySurf.get_rect()
113 pressKeyRect.topleft = (WINDOWWIDTH - 200, WINDOWHEIGHT - 30)
114 DISPLAYSURF.blit(pressKeySurf, pressKeyRect)
115
116
117def checkForKeyPress():

Callers 2

showStartScreenFunction · 0.85
showGameOverScreenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected