Skip to content

SampleCode

Kasugaccho edited this page Apr 6, 2019 · 5 revisions

0.2.X-0.3.X

#include <array>
#include "DTL.hpp"

int main() {

	using dungeon_t = std::uint_fast8_t;
	std::array<std::array<dungeon_t, 11>, 11> dungeon{ {} };

	dtl::PointGridField<dungeon_t> point_grid_field(dungeon);
	dtl::dungeonStringOutputBool(dungeon, "##", "  ");

	return 0;
}
######################
##                  ##
##  ##  ##  ##  ##  ##
##                  ##
##  ##  ##  ##  ##  ##
##                  ##
##  ##  ##  ##  ##  ##
##                  ##
##  ##  ##  ##  ##  ##
##                  ##
######################
Clone this wiki locally