Difference between revisions of "Complete roguelike tutorial using C++ and libtcod - part 4: field of view"
Jump to navigation
Jump to search
(created lead, template and cat) |
|||
Line 2: | Line 2: | ||
In this fourth part, we're computing the player field of view to light only the visible part of the dungeon. We also only display the part of the dungeon that the player has explored. We're going to use the libtcod TCODMap object to compute the field of view. | In this fourth part, we're computing the player field of view to light only the visible part of the dungeon. We also only display the part of the dungeon that the player has explored. We're going to use the libtcod TCODMap object to compute the field of view. | ||
==libtcod functions used in this article== | |||
[http://roguecentral.org/doryen/data/libtcod/doc/1.5.1/html2/fov_init.html?c=false&cpp=true&cs=false&py=false&lua=false#0 TCODMap::TCODMap] | |||
[http://roguecentral.org/doryen/data/libtcod/doc/1.5.1/html2/fov_get.html?c=false&cpp=true&cs=false&py=false&lua=false#1 TCODMap::isWalkable] | |||
[http://roguecentral.org/doryen/data/libtcod/doc/1.5.1/html2/fov_get.html?c=false&cpp=true&cs=false&py=false&lua=false#0 TCODMap::isInFov] | |||
[http://roguecentral.org/doryen/data/libtcod/doc/1.5.1/html2/fov_compute.html?c=false&cpp=true&cs=false&py=false&lua=false TCODMap::computeFov] | |||
[http://roguecentral.org/doryen/data/libtcod/doc/1.5.1/html2/fov_init.html?c=false&cpp=true&cs=false&py=false&lua=false#1 TCODMap::setProperties] | |||
[[Category:Developing]] | [[Category:Developing]] |
Revision as of 16:57, 5 October 2015
Complete roguelike tutorial using C++ and libtcod -originally written by Jice Text in this tutorial was released under the Creative Commons Attribution-ShareAlike 3.0 Unported and the GNU Free Documentation License (unversioned, with no invariant sections, front-cover texts, or back-cover texts) on 2015-09-21. |
---|
|
In this fourth part, we're computing the player field of view to light only the visible part of the dungeon. We also only display the part of the dungeon that the player has explored. We're going to use the libtcod TCODMap object to compute the field of view.