Greetings, Scratcher Click to place/remove wall pieces, and when you're done with that press spacebar. The shortest possible path from the central orange square to your cursor will then be found! If you're experiencing lag: https://turbowarp.org/622427142
All code by me, @CasTur Inspired by and made with the help of Sebastian Lague's A* tutorial series on Youtube: https://www.youtube.com/playlist?list=PLFt_AvWsXl0cq5Umv3pMC9SPnKjfp9eGW More on pathfinding: https://en.wikipedia.org/wiki/Pathfinding