Edit of asset "HexGrid" Accepted

Old/Current New/Edit
Title HexGrid HexGrid
Description HexGrid is a module for hexagonal grids whose logic does not depend on the visual. Display the grid with a TileMapLayer, Polygon2D nodes, _draw() or 3D, or use it without any visual (server, AI, tests).

Features:
- HexCoords: axial and cube coordinates, distance, neighbors, range, ring, spiral, line, map shapes (hexagon, parallelogram, triangles, rectangle), and conversions to the four offset layouts of a TileMapLayer (Stacked and Stacked Offset, pointy or flat top).
- HexGrid: a Resource that stores one value of any type per cell, can be saved as a .tres file, and emits a cell_changed signal to keep the visual up to date.
- Pathfinding: breadth-first search, Dijkstra with a movement budget, greedy best-first search and A*, with a cost function per unit type.
- HexLayout: conversions between cells and pixel positions.

The repository includes five example scenes sharing one script (flat and pointy top, perspective), with unit selection, movement area, range and paths, plus a user guide and a technical guide in English and French.

Installation: the download only contains addons/hex_grid/. No plugin to enable: the classes are available as soon as Godot has imported the folder.
HexGrid is a module for hexagonal grids whose logic does not depend on the visual. Display the grid with a TileMapLayer, Polygon2D nodes, _draw() or 3D, or use it without any visual (server, AI, tests).

Features:
- HexCoords: axial and cube coordinates, distance, neighbors, range, ring, spiral, line, map shapes (hexagon, parallelogram, triangles, rectangle), and conversions to the four offset layouts of a TileMapLayer (Stacked and Stacked Offset, pointy or flat top).
- HexGrid: a Resource that stores one value of any type per cell, can be saved as a .tres file, and emits a cell_changed signal to keep the visual up to date.
- Pathfinding: breadth-first search, Dijkstra with a movement budget, greedy best-first search and A*, with a cost function per unit type.
- HexLayout: conversions between cells and pixel positions.

The repository includes five example scenes sharing one script (flat and pointy top, perspective), with unit selection, movement area, range and paths, plus a user guide and a technical guide in English and French.

Installation: the download only contains addons/hex_grid/. No plugin to enable: the classes are available as soon as Godot has imported the folder.
Category Scripts Scripts
License MIT MIT
Repository Provider GitHub GitHub
Repository Url https://github.com/David-Bambi/godot-hexgrid https://github.com/David-Bambi/godot-hexgrid
Issues Url https://github.com/David-Bambi/godot-hexgrid/issues https://github.com/David-Bambi/godot-hexgrid/issues
Godot version Godot 4.5 Godot 4.5
Version String 1.0.1 1.0.1
Download Commit fb0e464665f7ec861ad5d42e642ef4e74ef08232 fb0e464665f7ec861ad5d42e642ef4e74ef08232
Download Url (Computed) https://github.com/David-Bambi/godot-hexgrid/archive/fb0e464665f7ec861ad5d42e642ef4e74ef08232.zip https://github.com/David-Bambi/godot-hexgrid/archive/fb0e464665f7ec861ad5d42e642ef4e74ef08232.zip
Icon Url https://raw.githubusercontent.com/David-Bambi/godot-hexgrid/main/asset_library/icon.png
https://raw.githubusercontent.com/David-Bambi/godot-hexgrid/main/asset_library/icon.png
Preview Insert
Type image
Image/Video URL https://raw.githubusercontent.com/David-Bambi/godot-hexgrid/main/asset_library/preview_flat_stacked.png
Thumbnail https://raw.githubusercontent.com/David-Bambi/godot-hexgrid/main/asset_library/thumbnail_flat_stacked.png
Preview Insert
Type image
Image/Video URL https://raw.githubusercontent.com/David-Bambi/godot-hexgrid/main/asset_library/preview_pointy_stacked.png
Thumbnail https://raw.githubusercontent.com/David-Bambi/godot-hexgrid/main/asset_library/thumbnail_pointy_stacked.png
Preview Insert
Type image
Image/Video URL https://raw.githubusercontent.com/David-Bambi/godot-hexgrid/main/asset_library/preview_perspective.png
Thumbnail https://raw.githubusercontent.com/David-Bambi/godot-hexgrid/main/asset_library/thumbnail_perspective.png