Skip to content(if available)orjump to list(if available)

Hexagon Spiral Coordinates

Hexagon Spiral Coordinates

5 comments

·March 13, 2025

sesm

The spiral looks unnatural, why not do it like this: https://imgur.com/a/e25fDvc ?

coreyp_1

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.

airstrike

Damn it, you're making me want to write games but I already have weekend plans!!

nickandbro

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.

artemonster

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)