Chaosforge Forum

Coding => FPC Valkyrie => Topic started by: TFoN on January 11, 2007, 10:19

Title: Where's the vision code?
Post by: TFoN on January 11, 2007, 10:19
Assuming it's part of the engine, of course.
Couldn't seem to find it.
Title: Re: Where's the vision code?
Post by: Kornel Kisielewicz on January 11, 2007, 12:06
Unfortunately I didn't come up with a good way to abstract the vision code, so currently each game does it it's own way. If you want some pointers you can look at how berserk! handles it.
Title: Re: Where's the vision code?
Post by: TFoN on January 12, 2007, 05:48
Thanks.

While I'm at it, then, where's it in Berserk!.?
Title: Re: Where's the vision code?
Post by: Kornel Kisielewicz on February 03, 2007, 04:29
Uh sorry, I missed this one. The vision code in Berserk! is in brlevel.pas in the TLevel class: procedure TLevel.DrawLOS(lx,ly,ldist : Word);. It's directly based on code by Isaac Kuo.
Title: Re: Where's the vision code?
Post by: TFoN on February 03, 2007, 12:58
Thanks, though I had found it pretty much after I posted the question :)