Skip to content

ljedrz/hex-spiral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hex-spiral

crates.io docs.rs dependencies

hex-spiral is library for working with 2D hexagonal maps using single-coordinate positions.

Overview

While most hex-grid-based 2D games use multiple coordinates, hex-spiral uses a single-coordinate spiral, where the central hex has the position 0, and further hexes are placed within theoretical hexagonal rings that surround it.

TODO

  • add conversion from hex position to window/screen coordinates
  • add conversion from window/screen coordinates to hex position
  • revise the APIs and data types

About

A single-coordinate concentric 2D hex grid.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages