Hexagonal Board Coordinates by ycarowr - 8

Frameworks

A small framework to create, get and store data inside a hexagonal board using Unity and C#

Unity 2019.2.7f2MIT LicenseUpdated 16 days agoCreated on December 14th, 2019
Go to source

A hexagonal board implementation in Unity

The repository contains a small framework to create, find and store data inside a hexagonal board using Unity TileMaps and the math described by redblob and it’s references.

The reasons that I made this project are the following:

  1. It can easily be extented or integrated into a secondary project.
  2. Usage of Unity TileMaps components: I could not find in the web an implementation that binds this unity native component and the math described in redblob with a graphic interface.
  3. Ready to go: I’d like to have a set of generic classes that manage hexagons and are able to store any kind of data.

Since the requirements above are met, I do believe this repository can save some time in the implementation of hexagonal prototypes/projects that are unity based.

Feel free to use it. Any kind of feedback is well appreciated.

You can find below images that illustrate the funcionalities and an overview of the system’s implementation.

Playable demo here

Functionalities

Diagonals Horizontal
Neighbours Tile Orientation
<!— Hover

Shapes & Sizes

The interface menu to interact with the board data and test the operations.

Implementation

MVC

  1. Model
  2. Views
  3. Controller

//TODO: Documentation details…

Show all projects by ycarowr