Chaosforge Forum

  • March 28, 2024, 14:57
  • Welcome, Guest
Please login or register.



Login with username, password and session length
Pages: [1]

Author Topic: Where's the vision code?  (Read 5489 times)

TFoN

  • Colonel
  • *
  • Offline Offline
  • Posts: 562
  • Gleefully antisocial!
    • View Profile
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.

Kornel Kisielewicz

  • God Hand
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 4562
    • View Profile
    • http://chaosforge.org/
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 Offline
  • Posts: 562
  • Gleefully antisocial!
    • View Profile
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!.?

Kornel Kisielewicz

  • God Hand
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 4562
    • View Profile
    • http://chaosforge.org/
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 Offline
  • Posts: 562
  • Gleefully antisocial!
    • View Profile
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 :)
Pages: [1]