For each of your new "horizontal" coordinates, there is a linear relation changing the "old" coordinate into the pixel coordinate of the pygame map.
You have to find the intercept and the slope of that linear relation.
There will be a second, unrelated "linear transformation" for the new vertical coordinate as a function of the original vertical coordinate.
So you need to figure out slope and intercept for two functions
def new_horizontal(oldx, hslope, hintercept):
new=hintercept+hslope*oldx
return new
(There are better ways to write the code.)
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor