(1..12).min {|a, b| Math.hypot($game_screen.pictures[a].x - $game_screen.pictures[40].x , $game_screen.pictures[a].y - $game_screen.pictures[40].y) <=> Math.hypot($game_screen.pictures[b].x - $game_screen.pictures[40].x , $game_screen.pictures[b].y - $game_screen.pictures[40].y) } |
本帖最后由 大放异彩 于 2021-3-24 15:37 编辑 嘿嘿已自行解决 ![]() |
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2025-2-24 08:02
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.