A* (A-Star) Pathfinding Algorithm Display Grid

Post your working scripts, libraries and tools
User avatar
SpeedMaster
Posts: 204
Joined: 12 Nov 2016, 16:09

A* (A-Star) Pathfinding Algorithm Display Grid

07 Feb 2018, 15:05

Hello,

I made a display grid to test the A* (A-Star) algorithm written by Fanaticguru. ;)
I don't know if it works on other PC but I wanted to share it with you. :)
Here is the display grid: :geek:

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus


ASTAR.png
ASTAR.png (20.82 KiB) Viewed 366 times

Instructions: (you can toggle the shortcuts)
Crt+Left click : Add a wall
Ctr+Right click : Remove a wall
F1: Debug Map
F2: Show the path
F3: New Map
F4: Clear Map
F5: Chasing Mode : the target will chase the player
F6: Show Grid
F7: Save Map
f9: Debug click

Any suggestion on how to improve the code are welcome. :roll:

Most of the functions are recycled from my previous ASCII game:
https://autohotkey.com/boards/viewtopic ... 19&t=43403
You can find the pathfinder algorithm (by FanaticGuru) here:
topic: https://autohotkey.com/boards/viewtopic ... ca#p185714
I also used a map generator found here:
https://rosettacode.org/wiki/Maze_solving#AutoHotkey

Other A* pathfinding related topics
https://autohotkey.com/board/topic/3616 ... ng-editor/
https://autohotkey.com/board/topic/7761 ... ng-with-a/
https://autohotkey.com/board/topic/4902 ... m-in-grid/
https://autohotkey.com/board/topic/1470 ... ple-nodes/
Helgef
Posts: 3094
Joined: 17 Jul 2016, 01:02
Contact:

Re: A* (A-Star) Pathfinding Algorithm Display Grid

08 Feb 2018, 07:29

:bravo: Very nice, thanks for sharing. It works very well.

Cheers.
User avatar
SpeedMaster
Posts: 204
Joined: 12 Nov 2016, 16:09

Re: A* (A-Star) Pathfinding Algorithm Display Grid

08 Feb 2018, 10:23

Helgef wrote::bravo: Very nice, thanks for sharing. It works very well.

Cheers.

Thanks for your feedback :thumbup:
JasonDavisFL
Posts: 9
Joined: 12 Jan 2018, 13:05
Facebook: JasonDavis83
GitHub: JasonDavisFL

Re: A* (A-Star) Pathfinding Algorithm Display Grid

17 Feb 2018, 21:19

very cool

Return to “Scripts and Functions”

Who is online

Users browsing this forum: arcticir, Randy31416, Ved and 19 guests