cocos2dx-lua制作游戏五维图
首先对五维图的五个顶点采集,可以使用Mark Man. 然后把五个点转为相对于五维图中心点的坐标。
local pointVec = {
[1] = {width = 0, height = 79},
[2] = {width = 81, height = 19.5},
[3] = {width = 51, height = -74},
[4] = {width = -51, height = -74},
[5] = {width = -81, height = 19.5}
}