Quantcast
Channel: Question and Answer » libgdx
Viewing all articles
Browse latest Browse all 434

Checking if Body is surrounded by other Bodies

$
0
0

I’m trying to make a game like Rampart as practice. I have gotten to the point where I want to check if the castle is surrounded by walls and decide whether to fill in the area and continue the game, but I have no idea how to do this. I have thought about ray-casting from the castle but it wouldn’t work if there was a bend in the walls.

So any help or suggestions would be great!


Viewing all articles
Browse latest Browse all 434

Trending Articles