Simple Path-finding

Paul59

Active Member
Joined
Dec 13, 2018
Location
UK
Here's a tiny demo of my path-finding code. It works for any 2D grid/maze and also recognizes complete 'rooms'. In this demo, the little red dude will only start path-finding when the (white) player isn't in a room. I've got a couple of ideas where this could be used in a game.

dmaps.gif
 

Paul59

Active Member
Joined
Dec 13, 2018
Location
UK
I've dropped in lots of totally random walls to make the pathfinding a bit more obvious:

dmaps2.gif
 
Top Bottom