Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def mouse_parser(mouse_x, mouse_y,hexs_list,high,wigh):
- long_list=[((mouse_x-i.x)**2+(mouse_y-i.y)**2) for i in hexs_list]
- if (min(long_list)) < 800:
- hexagone=(long_list.index(min(long_list)))
- hexs_list[hexagone].type = "wire"
Advertisement
Add Comment
Please, Sign In to add comment