Field of Vision Code
March 20, 2006 5:07 pm Game Algorithms, Nintendo DS, SouthgateI’m working on a field-of-vision implementation for Southgate at the moment, which is both very fast and highly accurate. It also provides anti-aliased shadows, accounts for shadows that are smaller than a single tile, and (I haven’t decided yet) might even end up supporting non-opaque shadows.
Depending on how well it turns out, I dunno, I might release the code and/or write a tutorial. The code is based on the tutorial by Gordon Lipford (which I originally found on Dungeondweller.) My adjustments to it are just tuning and slight extensions which aren’t in fact very difficult to make, plus a bunch of style refactorings. We’ll see – maybe I’ll put it with the other tutorials and example code. For now, Björn Bergström’s tutorial or Tobias Downer’s tutorial will be the best no-code explanations you can find.
