December 06, 2024, 00:17
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Visit ChaosForge on Facebook!
Home
Help
Search
Team
Login
Register
Chaosforge Forum
»
Coding
»
FPC Valkyrie
»
Where's the vision code?
Pages: [
1
]
Print
Author
Topic: Where's the vision code? (Read 6655 times)
TFoN
Colonel
Offline
Posts: 562
Gleefully antisocial!
Where's the vision code?
«
on:
January 11, 2007, 10:19 »
Assuming it's part of the engine, of course.
Couldn't seem to find it.
Logged
Regression to the Mean
Kornel Kisielewicz
God Hand
Apostle
Offline
Posts: 4576
Re: Where's the vision code?
«
Reply #1 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.
Logged
at your service,
Kornel Kisielewicz
TFoN
Colonel
Offline
Posts: 562
Gleefully antisocial!
Re: Where's the vision code?
«
Reply #2 on:
January 12, 2007, 05:48 »
Thanks.
While I'm at it, then, where's it in Berserk!.?
Logged
Regression to the Mean
Kornel Kisielewicz
God Hand
Apostle
Offline
Posts: 4576
Re: Where's the vision code?
«
Reply #3 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.
Logged
at your service,
Kornel Kisielewicz
TFoN
Colonel
Offline
Posts: 562
Gleefully antisocial!
Re: Where's the vision code?
«
Reply #4 on:
February 03, 2007, 12:58 »
Thanks, though I had found it pretty much after I posted the question :)
Logged
Regression to the Mean
Print
Pages: [
1
]
Chaosforge Forum
»
Coding
»
FPC Valkyrie
»
Where's the vision code?