Coding > FPC Valkyrie

Where's the vision code?

(1/1)

TFoN:
Assuming it's part of the engine, of course.
Couldn't seem to find it.

Kornel Kisielewicz:
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.

TFoN:
Thanks.

While I'm at it, then, where's it in Berserk!.?

Kornel Kisielewicz:
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.

TFoN:
Thanks, though I had found it pretty much after I posted the question :)

Navigation

[0] Message Index

Go to full version