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

Function drawGrid

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

Source from the content-addressed store, hash-verified

211
212
213def drawGrid():
214 for x in range(0, WINDOWWIDTH, CELLSIZE): # draw vertical lines
215 pygame.draw.line(DISPLAYSURF, DARKGRAY, (x, 0), (x, WINDOWHEIGHT))
216 for y in range(0, WINDOWHEIGHT, CELLSIZE): # draw horizontal lines
217 pygame.draw.line(DISPLAYSURF, DARKGRAY, (0, y), (WINDOWWIDTH, y))
218
219
220if __name__ == '__main__':

Callers 1

runGameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected