Post AbsprrhzeAWbcH82yW by arnelson@fosstodon.org
(DIR) More posts by arnelson@fosstodon.org
(DIR) Post #AbslP5XMknquI4BG0O by icedquinn@blob.cat
2023-11-17T01:36:04.825396Z
0 likes, 0 repeats
tonights pain: getting axial coordinates on these hexes :blobcatpain:
(DIR) Post #AbsovPALbsIIITW0OW by icedquinn@blob.cat
2023-11-17T02:15:31.450428Z
1 likes, 0 repeats
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.
(DIR) Post #AbspbQdqVsjf2KLqXQ by arnelson@fosstodon.org
2023-11-17T02:20:32Z
1 likes, 0 repeats
@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...)
(DIR) Post #AbspbRfegdmEEECnzs by icedquinn@blob.cat
2023-11-17T02:23:05.946251Z
0 likes, 0 repeats
@arnelson :blobcatwaitwhat2: why thoughi guess if you were really trying to compress the coordinates
(DIR) Post #AbsprrhzeAWbcH82yW by arnelson@fosstodon.org
2023-11-17T02:24:53Z
1 likes, 0 repeats
@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.
(DIR) Post #AbsqwrVXv8noObFlIG by icedquinn@blob.cat
2023-11-17T02:38:11.739752Z
0 likes, 0 repeats
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