Rocket launcer trigger range
In the example you sent me of this, the rocket launcher is 4 spaces to the south of the target, and 2 spaces to the west. According to the Pythagorean theorum the distance between them is therefore 4.47, which rounds to 4, and so is considered within range.
So, the area of range of a range 4 defense looks like this:
--*****--
-*******-
*********
*********
****o****
*********
*********
-*******-
--*****--
I could have it consider anything at all above 4 to be out of range, but then it would look like this:
----*----
-*******-
-*******-
-*******-
****o****
-*******-
-*******-
-*******-
----*----
(hard to see with the character graphics, but it's basically a square with points coming out in the middle of each side)
So, the area of range of a range 4 defense looks like this:
--*****--
-*******-
*********
*********
****o****
*********
*********
-*******-
--*****--
I could have it consider anything at all above 4 to be out of range, but then it would look like this:
----*----
-*******-
-*******-
-*******-
****o****
-*******-
-*******-
-*******-
----*----
(hard to see with the character graphics, but it's basically a square with points coming out in the middle of each side)
I looked it as 4 moves from the rocket launcher. Having "numerical" 4,47 distance is actually more than 4 and should be out of range.
The "numerical" distance wouldnt be the same when you have 4 squares straight or 4 squares diagonal, but it would be easier to see it in game, whether a building is in range or not.
What do you think?
The "numerical" distance wouldnt be the same when you have 4 squares straight or 4 squares diagonal, but it would be easier to see it in game, whether a building is in range or not.
What do you think?
-
- Information
-
Who is online
Users browsing this forum: No registered users and 4 guests