Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hexagonal Grid Option #7

Closed
4 tasks done
doodlezucc opened this issue Aug 21, 2022 · 2 comments
Closed
4 tasks done

Hexagonal Grid Option #7

doodlezucc opened this issue Aug 21, 2022 · 2 comments

Comments

@doodlezucc
Copy link
Owner

doodlezucc commented Aug 21, 2022

User submitted feature request:
Please implement the option to use hex grids and no grid at all.

Notes:

  • Option "no grid" should be simple to code, but measuring has to be adjusted (emphasize exact area instead of cells/squares).
  • Hexagonal grids are just square grids with shifted columns.

What needs to be done:

  • Research and implement measuring rules.
  • Shared calculation method to convert between squares and hexagons.
  • Add input field to select grid type (possibly as part of the scene settings).
  • Support Fog of War with every grid type.
@doodlezucc
Copy link
Owner Author

A dedicated Dart library for different grids and conversion between world and grid space was created at doodlezucc/dart_grid.

@doodlezucc
Copy link
Owner Author

Hex grids are now fully supported! Token movement and sizing, grid snapping, measuring (paths as well as all D&D 5e Areas of Effect) and a way to use Fog of War with hexagons have been implemented.

The changes include a refactor to how measurings are created and handled in code. Functionality of the grid library has been integrated and is visible in multiple parts of this repository as well as the dedicated Fog of War library (web_polymask).

All changes made while working on this issue can be seen in the GitHub diff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant