View Single Post
Old June 19, 2009, 19:21   #38
Atanvarno
Rookie
 
Join Date: May 2009
Posts: 9
Atanvarno is on a distinguished road
This system allows the player to see very much, even more than the digital field of view (http://roguebasin.roguelikedevelopme..._field_of_view):

Code:
  %%%%#%%
  %  .   
 %% ###%%
 % ...#
##....#
@.....#%%%%
##........#%
 % ...###...
 %  ..# %%%%
 %%%%##
Here % is a hidden wall.

Digital fov is symmetric and has the following nice property:
if A can see B, then A can see everything between A and B.

This new system has the following slighty weaker property:
if A can target B (with the old method), then A can see everything between A and B.

In the traditional system this is not true:
Code:
###X.B
A.....
Here A can't see X, but a shot fired at B hits X.

Roguebasin contains articles on different fov systems, and a comparison of them: http://roguebasin.roguelikedevelopme...ield_of_Vision.
Atanvarno is offline   Reply With Quote