Area filling like Paper.io using fllod fill algorithm
Hi all, am trying to implement paper.io logic. I know the filling can be done by using the flood fill algorithm. the problem that I am facing is flood fill algorithm takes the parameter, point or (x, y) that where it will start filling. how can I get that point value? I mean when the player made a closed loop I need to pass a point, that is inside of that loop. how can I get that point?
thanks for reading it.
Your answer
Follow this Question
Related Questions
How to calculate which tiles to affect in tile based game? 1 Answer
Making square of blocks in match3 C# 1 Answer
Script function being applied to everything it's attached to logic error 2 Answers
How does 'Super Mario custom level' implement? 0 Answers
How to make an attack that moves the players position relative the target. 1 Answer