https://github.com/dimithrandir/godot_2d_hex_map_nav_demo
Hexagonal TileMap navigation in Godot.
https://github.com/dimithrandir/godot_2d_hex_map_nav_demo
astar dijkstra gdscript godot godot3-5 tilemap
Last synced: about 1 year ago
JSON representation
Hexagonal TileMap navigation in Godot.
- Host: GitHub
- URL: https://github.com/dimithrandir/godot_2d_hex_map_nav_demo
- Owner: Dimithrandir
- License: mit
- Created: 2023-05-09T15:54:01.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-06-29T23:27:02.000Z (almost 2 years ago)
- Last Synced: 2025-03-24T07:26:41.122Z (about 1 year ago)
- Topics: astar, dijkstra, gdscript, godot, godot3-5, tilemap
- Language: GDScript
- Homepage: https://godotengine.org/asset-library/asset/1888
- Size: 804 KB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 2D Hexagonal Map Navigation Demo
This is an example of implementing hexagonal TileMap navigation in Godot.
TileMap cells are rectangular by default. Hexagonal maps are achieved by applying hexagonal tiles to each cell. However, since the tiles don't overlap the cells completely, mouse events aren't always registered within the right cell.
This project provides a solution to this problem.
It features mouse navigation of a player character on a TileMap and path finding using two algorithms (A* and Dijkstra).
