MoonHerder: the line hack

in cocos2d, cocos2d-x and libgdx

There is a tiny bit of an issue when drawing curved lines in OpenGL, because of the way the line “caps” are drawn. Of course the issue is only an issue if you want thick lines and don’t want to texture them properly (with triangle fanned vertices.) But there is a quick solution to that.

Read More