How do I make my pathfinding algorithm highlight the shortest path?

68 Views Asked by At

I've been programming in Java for about 4 months now and I have finally managed to create an A* pathfinding visualization. I used the 'Porcessing' library, and although I'm sure that my code isn't too good and unsure if I implemented it perfectly - it appears to work! :D My issue right now is that my code doesn't highlight the best path, it just draws a big black stain on the grid (the big black stain is the 'player'). How could I make the program highlight the shortest path? Thanks in advance!

0

There are 0 best solutions below