The reason for the question is that in my lecture notes, for a uniformly continuous function, they write $0<|x-x_0|+|y-y_0|<\delta$. As suggested
here, continuity depends on the distance function. This confuses me since I don't know which distance function makes a given function continuous or not, i.e. how did the authors of my lecture notes figure out that the distance function that reads $0<|x-x_0|+|y-y_0|<\delta$ works?