六邊形數據結構和尋路

最近作了個跳棋小遊戲,因而接觸了一下六邊形的東西,簡單記錄一下數據結構 六邊形數據結構大概能夠抽象爲3d 每一個棋子的位置爲blog position = cc.v2((x +  (y % 2 == 0 ? 0 : 0.5) )* wiidth , y * height); 遊戲 每兩個字的間距爲get     getDistance: function (from, to) {        
相關文章
相關標籤/搜索