简体   繁体   中英

LibGDX AStar Pathfinding on a Tiled Map

I want to have pathfinding in my .tmx file that created by tiled tool for libgdx but I am very biginner in libgdx. can you show me a complete pathfinding example in tiled maps with libgdx?

I use tiled for build my game map. in this grid map , I want to add node to every grid and connect with other nodes that it make us a graph to pathfinding .

like this image

How can I add nodes to tiles and connect them, and how can I run pathfinding on such a graph in libgdx?

I want some thing like this : libgdx pathfinding

Dont know if it fits your needs, but have you seen this?

https://github.com/xaguzman/pathfinding

Its well documented. Also check bridge inside it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM