Radius and blocked line of sight on a grid.
Posted: Wed Sep 30, 2015 6:37 pm
Hi, I'm in the making of a rogue like game and I bumped into two problems.
The first one is my attack system.
It's turn by turn based and I'm having difficulties to create a solution to solve my line of sight problem.
Basically, there is the player and there is the wall. I want the squares behind the wall to be unable to receive damage since the ''fire breath'' started from the player.
Does anyone have a good way of doing that?
The first one is my attack system.
It's turn by turn based and I'm having difficulties to create a solution to solve my line of sight problem.
Basically, there is the player and there is the wall. I want the squares behind the wall to be unable to receive damage since the ''fire breath'' started from the player.
Does anyone have a good way of doing that?