绘制六角格在Flash?Flash

2023-09-11 04:50:08 作者:或許゛ sんí 迷茫?

什么是算法绘制六角格的最简单的方法?我应该如何present他们的数据?

What's the easiest way to draw a hex grid algorithmically? How should I present them in data?

例如,在一个方形网格,我可以只保存XY坐标..

For example, in a square grid, I could just save x-y coordinates..

推荐答案

所以六边形是一个整洁的库为AS3游戏,它有可能是方便在您的研究一些六边形类。 本文有一些关于六边形地砖在Flash非常漂亮的细节。

So hexagon is a neat library for AS3 games, it has some hexagon classes that might be handy in your research. This article has some very nice details about hexagon tiles in Flash.

 
精彩推荐
图片推荐