Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)