[HN Gopher] Hexagon Spiral Coordinates
___________________________________________________________________
Hexagon Spiral Coordinates
Author : ibobev
Score : 41 points
Date : 2025-03-13 09:20 UTC (2 days ago)
(HTM) web link (www.redblobgames.com)
(TXT) w3m dump (www.redblobgames.com)
| artemonster wrote:
| 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_1 wrote:
| A _new_ post on hexagons (the best-agons!)!!! Now that 's a nice
| surprise!
|
| I appreciate the effort that Red Blob Games puts into their
| website.
| nickandbro wrote:
| I am making a vim game, with levels that are connected using
| hexagons and used redblobgame's hexagon guide. Was extremely
| helpful! If anyone's interested in checking out my hobby project,
| here it is: vimgolf.ai
|
| It's prone to breaking at times, but I am continuously improving
| it and will do a official post on hackernews once there's a good
| amount of levels and its fairly robust with how it scales the vim
| instances.
| airstrike wrote:
| Damn it, you're making me want to write games but I already have
| weekend plans!!
| sesm wrote:
| The spiral looks unnatural, why not do it like this:
| https://imgur.com/a/e25fDvc ?
___________________________________________________________________
(page generated 2025-03-15 23:00 UTC)