cocos 尋路 lua實現

cocos 尋路 lua實現 local RoadPoint = {} function RoadPoint:CreateNode(p) -- body local t = {} t.g = -1; t.h = -1; t.f = 0; t.point = p; t.parent = nil; return t; end -- 判斷p是否在open表中 function RoadPoint:exi
相關文章
相關標籤/搜索