如何使网格上一圈? [英] How to make a circle on a grid?

查看:140
本文介绍了如何使网格上一圈?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在做一个游戏,所有的运动是基于网格。我也wan't使能了一圈周游实体。因此,没有人有任何建议创建一个圆出一个正方形网格(如MS画图使用圆形工具作一圆出正方形像素的方式)。

I'm making a game where all movement is grid based. I also wan't to make entities that can travel around in a circle. So does anyone have any suggestions for creating a circle out of a grid of squares (like the way MS Paint uses the circle tool to make a circle out of square pixels).

推荐答案

查看中点画圆算法

这篇关于如何使网格上一圈?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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