Working line iterator, and mostly working flood iterator that should be good enough for world gen.

This commit is contained in:
Zed A. Shaw 2024-12-18 19:22:22 -05:00
parent 1295e9631d
commit d4b6c35120
5 changed files with 91 additions and 39 deletions

View file

@ -35,7 +35,10 @@ TEST_CASE("lighting a map works", "[lighting]") {
lr.clear_light_target(light1);
lr.clear_light_target(light2);
const auto &lighting = lr.lighting();
Matrix &lighting = lr.lighting();
matrix::dump("WALLS=====", map.walls());
matrix::dump("LIGHT PATHS======", lr.$paths.$paths);
// confirm light is set at least at and around the two points
REQUIRE(lighting[light1.y][light1.x] == lighting::LEVELS[source1.strength]);