| 
 | 
 
 楼主 |
发表于 2020-6-5 01:41:28
|
显示全部楼层
 
 
 
- hb_ways = {
 
 -         ["north"] = "south",
 
 -         ["south"] = "north",
 
 -         ["east"]  = "west",
 
 -         ["west"]  = "east",
 
 -         ["northeast"]  = "southwest",
 
 -         ["northwest"]  = "southeast",
 
 -         ["southwest"]  = "northeast",
 
 -         ["southeast"]  = "northwest",
 
 -         ["up"]  = "down",
 
 -         ["down"]  = "up",
 
 -         ["enter"]  = "out",
 
 -         ["out"]  = "enter",
 
 -         ["northup"]  = "southdown",
 
 -         ["southdown"]  = "northup",
 
 -         ["eastup"]  = "westdown",
 
 -         ["westdown"]  = "eastup",
 
 -         ["westup"]  = "eastdown",
 
 -         ["eastdown"]  = "westup",
 
 -         ["southup"]  = "northdown",
 
 -         ["northdown"]  = "southup",
 
 - }
 
  复制代码 
 
先定义一个方向对照表,比如我们这一步走了east大师丢了,那就**west回去找他,很简单的思路! 
这是我从梅庄函数里学到的,所以说老公版里很多好东西啊! |   
 
 
 
 |