Skip to content

I spent a night trying to figure out how to do a corona hex map. I'm still learning lua so I'm definitely open to any suggested ways to make this better.

Notifications You must be signed in to change notification settings

farkerhaiku/corona_hex_map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

corona_hex_map

I spent a night trying to figure out how to do a corona hex map. I'm still learning lua so I'm definitely open to any suggested ways to make this better.

Feel free to make use of this however you'd like! If you end up using any of it I'd love to hear about it.

@farkerhaiku

TODO:

  • alternate between different drawing strategies (i.e. pointy top hexagons or flat top hexagons)
  • unpassable terrain (e.g. walls) in distance calculations

Credit to redblobgames for their awesome article on how to do hex grids. http://www.redblobgames.com/grids/hexagons/

About

I spent a night trying to figure out how to do a corona hex map. I'm still learning lua so I'm definitely open to any suggested ways to make this better.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages