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

Function drawLevel

inprogress/stickyhands.py:69–76  ·  view source on GitHub ↗
(levelNum, levelData)

Source from the content-addressed store, hash-verified

67
68
69def drawLevel(levelNum, levelData):
70 # Draw the current level.
71 print('Level #' + str(levelNum + 1), 'of', len(ALL_LEVELS))
72 for y in range(levelData['height']):
73 for x in range(levelData['width']):
74 prettyChar = CHAR_MAP[levelData.get((x, y), ' ')]
75 print(prettyChar, end='')
76 print()
77
78def getPlayerBlobPoints(levelData, playerx, playery):
79 playerBlob = [(playerx, playery)]

Callers 1

stickyhands.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected