Trying a new 'glowing moss' texture to sort out how to make the raycaster alter the light of a surface that has its own light.

This commit is contained in:
Zed A. Shaw 2025-05-24 00:47:44 -04:00
parent e361984c40
commit 9dcc2036aa
12 changed files with 109 additions and 51 deletions

View file

@ -32,23 +32,18 @@ TEST_CASE("camera control", "[map]") {
}
TEST_CASE("map placement test", "[map:placement]") {
for(int i = 0; i < 50; i++) {
for(int i = 0; i < 20; i++) {
LevelManager levels;
GameLevel level = levels.current();
auto &map = *level.map;
for(size_t rnum = 0; rnum < map.room_count(); rnum++) {
Room &room = map.room(rnum);
Point pos;
REQUIRE(map.place_entity(rnum, pos));
// matrix::dump("ROOM PLACEMENT TEST", map.walls(), pos.x, pos.y);
REQUIRE(!map.iswall(pos.x, pos.y));
REQUIRE(pos.x >= room.x);
REQUIRE(pos.y >= room.y);
REQUIRE(pos.x <= room.x + room.width);
REQUIRE(pos.y <= room.y + room.height);
REQUIRE(map.inmap(pos.x, pos.y));
}
}
}