Re: What's up with LOS?



In article <46328e57$0$27188$742ec2ed@xxxxxxxxxxxxxx>, bear@xxxxxxxxx
says...

One is to mark squares as visible iff there's a center-to-center
lineofsight. ie, light can pass through a square without making
that particular square (or monsters in it) visible, provided it
doesn't pass through the square's center. This means that sight
checks are always mutual; if you have line of sight on a monster,
it has line of sight on you.

I use this - the symmetry is convenient, as is the fact that you can
have a separate algorithm to do a quick check between any two squares
which will be consistent with it.

One modification I made is that in my game you can see (but not shoot
at) 'shadowed' squares that are orthogonally adjacent to a lit ground
square. That seems to give slightly greater realism than the harsh
cut-off of a pure centre-to-centre algorithm.

- Gerry Quinn

.



Relevant Pages

  • Re: Zaiband 3.0.7 release
    ... "good" reacting to the player, ... giving @ the ability to hear from which direction noisy monsters are coming. ... player could use a Wand/Rod of Light to illuminate the square. ... Positional targeting is now mainly of use if the exact path needs fine-tuning, ...
    (rec.games.roguelike.angband)
  • Re: LambdaRogue v0.3 (gamma 1)
    ... Partly it's a inconsequent approach to mimic Angband where you run ... yer style got me thinking about DND-style grappling were you ... have to enter the square to grapple. ... so the monsters may be spiced up further down. ...
    (rec.games.roguelike.development)
  • Re: Another (simple?) question on A*
    ... minus the distance to the player (assuming your ... square with a pathfinding gradient. ... usual rational is that the @ is emitting a scent that the monsters can ...
    (rec.games.roguelike.development)
  • Re: YASD, and I am very annoyed
    ... >> It's even worse when you are playing with Magic Trap, gets blind, move ... >> onto the square with the corpse so the other monsters won't pick it up and ...
    (rec.games.roguelike.nethack)
  • Re: Another (simple?) question on A*
    ... you calculate starting at the destination (the player's square) then ... those same numbers are "how far you have to go to reach the destination". ... So you can run only one A* calculation ... every frame for many monsters. ...
    (rec.games.roguelike.development)