I won’t talk about how A* works. I also read the blog below and wrote it based on the principle. It’s very simple and there are no twists and turns (read it several times).
https://blog.csdn.net/zhulichen/article/details/78786493
renderings
Link: https://pan.baidu.com/s/1y1_1r-pa3kPjMBAdkeZcXw
Extraction code: zv55
-------------------------
There is no nonsense, you can take it for reference if you need it, because everything I can say is available online, but some demos are missing. That's why I posted this blog