Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 1 day 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 (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-29T23:27:02.000Z (5 months ago)
- Last Synced: 2024-06-30T08:01:37.951Z (5 months ago)
- Topics: astar, dijkstra, gdscript, godot, godot3-5, tilemap
- Language: GDScript
- Homepage: https://godotengine.org/asset-library/asset/1888
- Size: 804 KB
- Stars: 9
- 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).
![Screenshot](screenshots/demo.gif)