Pathfinder (A* Algorithm)
A downloadable simulation for Windows
This is a grid-based pathfinding simulation that uses a self made implementation of the A* star search algorithm.
How to use
Press LMB to place tiles or press RMB to remove them. You can also switch between tile types by using the button on the bottom-left side of the screen. Place walls to block the path or glue, which takes twice as long to traverse as empty tiles.
After placing down some tiles press the start button to start the simulation. While a simulation is running you can't edit the grid, but you can pause the simulation and edit the grid again using the pause button and after unpausing again, a new path gets calcult.
Press the reset button to reset the actor's position or press the clear button to clear the board of any tiles you placed down.
By enabling or disabling the checkboxes on the top-left of the screen, you can also change the amount of information shown to you.
Controls
W, A, S, D | Rotate the camera |
---|---|
Scroll wheel | Zoom in/out |
Q | Switch between tile types |
E | Clear the board of any placed down tiles |
R | Reset the actor's position |
H | Hide GUI |
Distances Explanation
f ... sum of g and h
g ... distance to start
h ... distance to target
The font color of the tiles ,that have been visited while calculating the path , is set to black and the font color of the tiles, that only have been looked at by the algorithm but not visited, is set to grey. Tiles, without any text, haven't been looked at by the algorithm.
Extra Information
The cost to go from one empty tile to another is 5, the extra cost to go to a diagonal tile is 2 and the cost to traverse glue is 10.
If you notice any strange behaviour or any bugs please let me know!
Download
Click download now to get access to the following files:
Development log
- Bug Fix 1Feb 20, 2023
Comments
Log in with itch.io to leave a comment.
can i contact you to ask about the game you made?
What do you want to know?
I just got into the world of game development, I want to know how do you make games like this?
I want to make a simple game like this
I made this game using Unity and C#. I recommend to start by following some simple tutorials on Youtube and then using your gained knowledge to make something new.
Making a game is always a lot of googling and trial and error. It can be frustrating sometimes, but you can make some really fun stuff if you hang on.
Don't start by making a massive game. Start small and simple and work your way up. Just make some fun little prototypes in the beginning and if they turn out good you can reuse them later.
That was some general advice, but what exactly do you want to know?
If you want to know more about this game, I can explain some of the source code or concept to you.
Yes, please explain the concept and source code you are using
I think it would be easier to explain it using a other platform than itch.
Do you use Discord or something similar? If so, then please give me your id.
nice :)
esta severo 👍👍