A little while ago, we featured a YouTube tutorial for Pac-Man. That episode covered Tiled which is a great choice for building maps for your games. The tutorial series continues with another important aspect in games: pathfinding! Pathfinding is the act of making an entity (a fancy name for just a thing in your game world) be able to navigate through the game world, while avoiding obstacles along the way. It's very widely used so consider having a watch to see how Simple Coding Tutorials handles it.
Phaser 3 Pac-Man tutorial continues
Learn about A* pathfinding in this YouTube tutorial