News for hackers. Stuff that matters.
Re:Hexagonal Grids by vortico on Sunday June 25, 2017 @07:47AM (#14629617)
I remember using this article to create this dumb game! https://andrewbelt.name/hexgame/ Hexagons have a lot of neat geometrical properties like their tight packing and symmetry, yet their ability to be indexed easily with two coordinates.
Re:Hexagonal Grids by bitJericho on Sunday June 25, 2017 @09:39AM (#14629910)
I made a Tiled library for Monkey X supporting hexes with the help of this article.
Re:Hexagonal Grids by tonyarkles on Sunday June 25, 2017 @07:23PM (#14632810)
Well, that occupied way more time than I'd intended! Thanks!

And man it gets hard on maps where there's only one hex between regions. Long protracted battles. Like real life, I suppose.

Re:Hexagonal Grids by pavel_lishin on Sunday June 25, 2017 @11:03AM (#14630288)
That's incredibly fun. Have you considered making an Android/iPhone version?
Re:Hexagonal Grids by vortico on Monday June 26, 2017 @12:36AM (#14634126)
No, but I probably should. Maybe I'll use a cheap web view app bundler so I don't have to port the code. I don't know much about that field.
Re:Hexagonal Grids by Cognitron on Monday June 26, 2017 @06:22PM (#14640873)
Check out Influence by Teremok Games on Android. Nicely done hex-based strategy game, and one of the best Android games I've played period.
Re:Hexagonal Grids by YeGoblynQueenne on Sunday June 25, 2017 @12:02PM (#14630634)
Wow. I need to close that right away :) (yeah, I work on Sundays, OK?)
Re:Hexagonal Grids by Vel0cityX on Sunday June 25, 2017 @10:21AM (#14630103)
Fun game and hilarious homepage!
Re:Hexagonal Grids by malkia on Sunday June 25, 2017 @11:09AM (#14630314)
What a fun game! Thank you!
Re:Hexagonal Grids by asadlionpk on Sunday June 25, 2017 @03:03PM (#14631564)
This is amazing! Thanks
Re:Hexagonal Grids by Lutzb on Sunday June 25, 2017 @07:21PM (#14632799)
this game should exist on Android/iPhone
Re:Hexagonal Grids by Gaelan on Sunday June 25, 2017 @02:27AM (#14628905)
Re:Hexagonal Grids by mysterydip on Sunday June 25, 2017 @07:24AM (#14629570)
What's nice about hex grids is it's actually easy to implement as a regular 2D array by just using simple "if odd add 1" type math to traversing/displaying. This article was immensely helpful to me finally wrapping my head around their implementation.
Re:Hexagonal Grids by scentoni on Sunday June 25, 2017 @12:57PM (#14630932)
The "cube coordinate system" described here with a redundant third coordinate is similar to the Bravais-Miller indexes used in crystallography for hexagonal and trigonal crystals https://en.wikipedia.org/wiki/Miller_index#Case_of_hexagonal...
Re:Hexagonal Grids by mrcactu5 on Sunday June 25, 2017 @07:55AM (#14629631)
Re:Hexagonal Grids by douche on Sunday June 25, 2017 @08:35AM (#14629725)
I had a lot of fun working through this in the context of building mazes, e.g. http://weblog.jamisbuck.org/2015/11/28/upsilon-mazes.html

(not the author, just a guy who bought his book)

Re:Hexagonal Grids by donatj on Sunday June 25, 2017 @04:01AM (#14629104)
I love this post. I found it years ago and used it to make a toy game I always wanted to try. It's awesome.
Re:Hexagonal Grids by agumonkey on Sunday June 25, 2017 @08:40AM (#14629739)
Oh I love these articles. Greatly suggested.