Question by
puka_myspace · Oct 29, 2020 at 03:21 PM ·
tilesalgorithmsurround
How to know if the object or objects surrounded by othere objects?
As shown in the picture, how can i check if the blue balls surrounded by red balls in game? I have tried few ideas that I have found here. At runtime, I tried to Astar pathfinding AI. But didnt work correctly. I think if I subtract number of blue balloons from number of tiles in red circle, that would do it. But I couldnt find the number of tiles in red circle. Im programming in C#. Sorry for bad English
capture.png
(178.7 kB)
Comment