Pac man

Yes and no.
It wasn’t my goal, I just gave you some feedback.
But if allow, here some things I would do in another way.

First of all, you making a lot of manual work by setting points by yourself.

You should use loop instead to do it more automatically.

  1. Make your map like this, delete tiles with black color in place you don’t need dots, cause we will use them for spawn dots.

    Not sure is here 100 points, correct it later. If it will be more then 100 just delete black tile in tilemap anywhere
  2. then you need loop which walk for every black tile and put on them dot
    istead of all commands you made for manual pointing
  3. Since you use tilemap and ghost should be at the road too, probably you should use tile position for them too

All of this could make code more accurate, usefull and make project less size.

2 Likes