So of course i got side tracked and wanted to make a hex based tile map with built in pathfinding.
Once the program is running, click a hex to make it impassable then press Space bar to show the route
Peace Out
Note: start node is top left, end node is bottom right so don't click them
Hex grid with pathfinding
Hex grid with pathfinding
- Attachments
-
- chili_framework-master.zip
- (630.37 KiB) Downloaded 140 times
Curiosity killed the cat, satisfaction brought him back
-
- Posts: 19
- Joined: July 17th, 2017, 1:24 pm
Re: Hex grid with pathfinding
well thats cool .
I had no idea what you were talking about till i tried it.
I had no idea what you were talking about till i tried it.
Re: Hex grid with pathfinding
@OrbitalReign ... Pathfinding is so cool, hope you can implement it and anything you do. Hex based grids are different based on the even or odd rows you are on (cuz there indexes are same but confusing).. if you use a rectangle grid then the "getAdjacentCells" method will be different. have fun . I can post code for that if you want
Peace Out
Peace Out
Curiosity killed the cat, satisfaction brought him back
Re: Hex grid with pathfinding
Pathfinding is essential stuff. And A* can be applied to so many problems outside of it as well.
Hex grids are just cool. This page is a goldmine: http://www.redblobgames.com/grids/hexagons/
Hex grids are just cool. This page is a goldmine: http://www.redblobgames.com/grids/hexagons/
Chili
Re: Hex grid with pathfinding
Yeah i did some reading on there and got a couple equationschili wrote:Pathfinding is essential stuff. And A* can be applied to so many problems outside of it as well.
Hex grids are just cool. This page is a goldmine: http://www.redblobgames.com/grids/hexagons/
Curiosity killed the cat, satisfaction brought him back