TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Hexagon Spiral Coordinates

62 点作者 ibobev2 个月前

7 条评论

sesm2 个月前
The spiral looks unnatural, why not do it like this: <a href="https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;e25fDvc" rel="nofollow">https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;e25fDvc</a> ?
评论 #43375917 未加载
评论 #43376278 未加载
评论 #43375732 未加载
culi2 个月前
Red Blobs hexagon guide[0] (linked in the first paragraph) is an incredible collection of knowledge around hexagon-based maps. It&#x27;s fueled numerous random side projects of mine and has probably made hexagon-based indie games way more numerous than they otherwise would&#x27;ve been<p>[0] <a href="https:&#x2F;&#x2F;www.redblobgames.com&#x2F;grids&#x2F;hexagons&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.redblobgames.com&#x2F;grids&#x2F;hexagons&#x2F;</a>
评论 #43377857 未加载
Ferret74462 个月前
The obvious problem with spiral coordinates is that you lose spatial proximity. It&#x27;s useful to have the coordinates for adjacent spaces to also be adjacent.
评论 #43376851 未加载
artemonster2 个月前
Idk if you will ever need this, but if you like hexagonal grids that are rotated 30degrees you can have almost perfect one with vertices that lie on integer coordinates: just build a hex from triangle (0,0), (11,11), (15, -4). This is due to the fact that 2*(11^2)=242~ 241=15^2+4^2 and (7,4) vector being very close to 30 degrees. Alternatively, just build flat top hexes out of (0,0), (4,7), (8, 0)
coreyp_12 个月前
A <i>new</i> post on hexagons (the best-agons!)!!! Now that&#x27;s a nice surprise!<p>I appreciate the effort that Red Blob Games puts into their website.
nickandbro2 个月前
I am making a vim game, with levels that are connected using hexagons and used redblobgame&#x27;s hexagon guide. Was extremely helpful! If anyone&#x27;s interested in checking out my hobby project, here it is: vimgolf.ai<p>It&#x27;s prone to breaking at times, but I am continuously improving it and will do a official post on hackernews once there&#x27;s a good amount of levels and its fairly robust with how it scales the vim instances.
airstrike2 个月前
Damn it, you&#x27;re making me want to write games but I already have weekend plans!!