Загрузка данных


def map_draw():
    for i in range(len(my_map)):
        for j in range(len(my_map[0])):
            x = j * cell.width
            y = i * cell.height

            if my_map[i][j] == 0:
                cell0.topleft = (x, y)
                cell0.draw()
            elif my_map[i][j] == 1:
                cell1.topleft = (x, y)
                cell1.draw()
            elif my_map[i][j] == 2:
                cell2.topleft = (x, y)
                cell2.draw()
            elif my_map[i][j] == 3:
                cell3.topleft = (x, y)
                cell3.draw()