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


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:
                cell.topleft = (x, y)
                cell.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()

char = Actor('stand')
char.left = cell.width
char.top = cell.height

char.health = 100
char.attack = 5