Conversation
Notices
-
Embed this notice
iced depresso (icedquinn@blob.cat)'s status on Friday, 17-Nov-2023 10:36:06 JST iced depresso tonights pain: getting axial coordinates on these hexes :blobcatpain: -
Embed this notice
iced depresso (icedquinn@blob.cat)'s status on Friday, 17-Nov-2023 11:15:33 JST iced depresso it turned out i understood the math i just slot the wrong values in to the vectors. it was reading <q,s,r> and calculating r instead of <q,r,s> and calculating s :blobcatgooglybadumtss:
well. i just switched the components around. worky now.Doughnut Lollipop 【記録係】:blobfoxgooglymlem: likes this. -
Embed this notice
iced depresso (icedquinn@blob.cat)'s status on Friday, 17-Nov-2023 11:23:07 JST iced depresso @arnelson :blobcatwaitwhat2: why though
i guess if you were really trying to compress the coordinates -
Embed this notice
Adam Nelson (arnelson@fosstodon.org)'s status on Friday, 17-Nov-2023 11:23:08 JST Adam Nelson @icedquinn For extra fun, try Gosper spiral coordinates--represent each hex with one number!
Also known as spiral honeycomb mosaic: https://gamedev.stackexchange.com/questions/71785/converting-between-spiral-honeycomb-mosaic-and-axial-hex-coordinates
(Someday I'll find the motivation to work on my hex-based Terraria clone engine again...)
iced depresso likes this. -
Embed this notice
Adam Nelson (arnelson@fosstodon.org)'s status on Friday, 17-Nov-2023 11:26:08 JST Adam Nelson @icedquinn Memory locality, mostly. If you store all of your hexes in a big 1D array in Gosper order then nearby hexes are usually nearby in the array.
But also just because it's cool.
iced depresso likes this. -
Embed this notice
iced depresso (icedquinn@blob.cat)'s status on Friday, 17-Nov-2023 11:38:14 JST iced depresso other non-fun events (i have one caffiene bottle left) involve randomly picking a hex and doing the random walks. although there may be quite an easy way to cheese those.
gah i wish i had the updated nim binding. writing this stuff in gdscript is bleh
-
Embed this notice