I'm working on my first project, a Pacman-like game where the character runs around a maze collecting pickups on each tile.
I'm stuck on the best way to implement the handling of the pickup collection.
I can see two ways:
- Have a tilemap, with the floor tile with and without the pickup and check for which tile the character is on and flip the tile/take the pickup accordingly
- Use a scene for the pickup and have an instance on each tile
With the former, I guess there's no way to animate the pickup? With the latter, it's insanity having hundreds of instanced pickups?
I guess a third way would be to programatically add the instances to relevant tiles on loading the level so I'm not doing it in the UI? I'm not sure how to achieve that though.
Any help or suggestions would be appreciated. Thank you.