flauwekeul / honeycomb

Create hex grids easily, in node or the browser.
https://abbekeultjes.nl/honeycomb
MIT License
631 stars 57 forks source link

[Feature Request] Support Hex weights #33

Closed scottysseus closed 5 years ago

scottysseus commented 5 years ago

It would be sick if this library supported an additional weight property on Hex objects. This would enable functions like Hex.distance and some of the Grid functions to support more use cases.

I noticed Red Blob's article mentions 'movement cost', it would be nice if that could be a parameter of the individual Hex objects.

flauwekeul commented 5 years ago

It's already possible to add "custom" properties to hexes. Could that be a solution?