Advertisement
Guest User

Untitled

a guest
Jun 19th, 2012
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. def get_path(source,destination):
  2. """
  3. Obtain and return a list of the coordinates of all tiles between two points.
  4. """
  5. (current_x,current_y) = source
  6. (target_x,target_y) = destination
  7. dx = target_x - current_x
  8. dy = target_y - current_y
  9. gradiant = float(dy)/dx
  10. # ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement