Guest User

Untitled

a guest
Mar 20th, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. def mouse_parser(mouse_x, mouse_y,hexs_list,high,wigh):
  2.     long_list=[((mouse_x-i.x)**2+(mouse_y-i.y)**2) for i in hexs_list]
  3.     if (min(long_list)) < 800:
  4.         hexagone=(long_list.index(min(long_list)))
  5.         hexs_list[hexagone].type = "wire"
Advertisement
Add Comment
Please, Sign In to add comment