Sunday, July 15, 2012

Field of View

Reworking the basic display parts of my game as well as storage ideas for maps. What I currently have is far too cumbersome to work though what I am making may not be too efficent. Will work on it later but results are promising. Though side tracked by trying to figure out the ever elusive field of vision formula I always mess up. Completely pointless to anything I'm working on but I still want to get it licked if I ever use it in the future.

Currently working with something called the Bresenham's line algorithm. It's working for revealing all the squares I want revealed but I'm doing something wrong in pruning the blocked ones. Still working on it and learning from it and also may have something simpler to upgrade legends engine. Would just need some readjusting to work with the current generator though.

No comments:

Post a Comment