绘制六角格在Flash? [英] Drawing a hex grid in Flash?

查看:157
本文介绍了绘制六角格在Flash?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是算法绘制六角格的最简单的方法?我应该如何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.

这篇关于绘制六角格在Flash?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆