(tile, x, y, canvas)
| 75 | |
| 76 | |
| 77 | def drawTile(tile, x, y, canvas): |
| 78 | # `tile` is one of the strings from `TILES` |
| 79 | for ix in range(x, x + 5): |
| 80 | for iy in range(y, y + 5): |
| 81 | canvas[ix, iy] = TILE_MAP[tile[ix-x + (5 * (iy-y))]] |
| 82 | |
| 83 | |
| 84 | def rotateTileClockwise(tile, rotations): # rotations are clockwise at 90 degree increments |