Can someone explain the deal with line-of-sight, breath attacks, hockey-sticks, awareness, projectability and all that jazz? I've never really understood it.
Can someone explain how line-of-sight really works?
Collapse
X
-
Maybe. I shall give it a go anyway.
In Angband there's LOS, viewable, and projectable.
Viewable means you can see it. Projectable means you can throw a rock at it. LOS means you (potentially) have a direct line of sight on it.
Angband LOS / viewable is generous - you can see some things even if you couldn't hit them with a rock (spell bolt, etc.).
Code:##### # @[SIZE="1"] - I can see you there, dude.[/SIZE] #d### # #
Viewable (I think) includes fixes for walls so that you don't get blank corners in rooms and stuff.Code:##### # @[SIZE="1"] - I can hit you with a rock.[/SIZE] ## ### #d # ######
Somebody will now come along to correct me. ;-)Code:[B][COLOR="Red"]#[/COLOR][/B]###### # # @[SIZE="1"] - logically I can't know that red block of rock is there, yet i do.[/SIZE] # #
Currently turning (Angband) Japanese. -
The difference between LOS and viewable is IIUC that LOS can include things which are unlit - viewable means either lit squares or warm bodies & infravision. This is the issue with ESP: things detected by ESP can be in LOS but not viewable. I am not convinced that r1439 has fixed this correctly.Maybe. I shall give it a go anyway.
In Angband there's LOS, viewable, and projectable.
Viewable means you can see it. Projectable means you can throw a rock at it. LOS means you (potentially) have a direct line of sight on it.
Angband LOS / viewable is generous - you can see some things even if you couldn't hit them with a rock (spell bolt, etc.)."Been away so long I hardly knew the place, gee it's good to be back home" - The BeatlesComment
-
The most important thing is the assymetry. When you are a knight's move away, the first step of projection is orthogonal and the second step is diagonal. That means that one of you can shoot the other without being shootable in return if there is a wall in the path in one direction but not the other. One way to remember is
##########################
..........................@
G########################
You want to target the ghost, but when it comes toward you it stays in the wall. That is not because it is smart, just because the first step is orthogonal rather than diagonal. If you want to shoot it on the way, use stone to mud above and step up and when it moves out of the wall step back down and shoot.Comment
-
That sort of thing illustrates the potential advantage of hex-grid based systems. Damned if I'd want to code one, though.The most important thing is the assymetry. When you are a knight's move away, the first step of projection is orthogonal and the second step is diagonal. That means that one of you can shoot the other without being shootable in return if there is a wall in the path in one direction but not the other.
Currently turning (Angband) Japanese.Comment
-
In case you haven't checked HexRogue, you can have a look here (Java required), it's interesting: http://www.hexatron.com/hexrogue/index.htmlA(3.2.0) C "Angdiira II" DP L:36 DL:44(2200') A+ R+ Sp w:Whip of Westernesse(+10,+10)(+2)
A Mx H- D c-- f- PV+ s- d P++ M+
C- S-- I So B++ ac GHB- SQ+ RQ++ V+Comment
Comment