4 ms·
Hexagonal Grids
- vortico 9y agoI remember using this article to create this dumb game! https://andrewbelt.name/hexgame/ 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.
- bitJericho 9y agoI made a Tiled library for Monkey X supporting hexes with the help of this article.
- Vel0cityX 9y agoFun game and hilarious homepage!
- pavel_lishin 9y agoThat's incredibly fun. Have you considered making an Android/iPhone version?
- vortico 9y agoNo, 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.
- Cognitron 9y agoCheck out Influence by Teremok Games on Android. Nicely done hex-based strategy game, and one of the best Android games I've played period.
- malkia 9y agoWhat a fun game! Thank you!
- YeGoblynQueenne 9y agoWow. I need to close that right away :) (yeah, I work on Sundays, OK?)
- asadlionpk 9y agoThis is amazing! Thanks
- Lutzb 9y agothis game should exist on Android/iPhone
- tonyarkles 9y agoWell, 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.
- Gaelan 9y agoPrevious discussion: https://news.ycombinator.com/item?id=5809724 https://news.ycombinator.com/item?id=5809724
- mrcactu5 9y agohave you considered square-octagon tilings? https://gamedev.stackexchange.com/a/68271 https://gamedev.stackexchange.com/a/68271 https://en.wikipedia.org/wiki/Truncated_square_tiling https://en.wikipedia.org/wiki/Truncated_square_tiling
- douche 9y agoI 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 http://weblog.jamisbuck.org/2015/11/28/upsilon-mazes.html (not the author, just a guy who bought his book)
- donatj 9y agoI love this post. I found it years ago and used it to make a toy game I always wanted to try. It's awesome.
- mysterydip 9y agoWhat'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.
- agumonkey 9y agoOh I love these articles. Greatly suggested.
- scentoni 9y agoThe "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_and_rhombohedral_structures https://en.wikipedia.org/wiki/Miller_index#Case_of_hexagonal...