Mostly cleaned up world get to handle more rooms and paths, but rando_rect needs to be actually random.
This commit is contained in:
parent
c19c53b15b
commit
e9277bf052
11 changed files with 257 additions and 39 deletions
|
@ -13,9 +13,11 @@ TEST_CASE("lighting a map works", "[lighting]") {
|
|||
Map map(20,23);
|
||||
WorldBuilder builder(map);
|
||||
builder.generate_map();
|
||||
Point light1, light2;
|
||||
|
||||
REQUIRE(map.place_entity(0, light1));
|
||||
REQUIRE(map.place_entity(1, light1));
|
||||
|
||||
Point light1 = map.place_entity(0);
|
||||
Point light2 = map.place_entity(1);
|
||||
LightSource source1{6, 1.0};
|
||||
LightSource source2{4,3};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue