Refactored out the tilemap since it was mostly doing nothing useful.
This commit is contained in:
parent
ea9f6bf383
commit
3a745d492a
15 changed files with 40 additions and 187 deletions
|
@ -26,7 +26,7 @@ TEST_CASE("test texture management", "[textures]") {
|
|||
LevelManager levels;
|
||||
GameLevel level = levels.current();
|
||||
auto& tiles = level.map->tiles();
|
||||
auto map = textures::convert_char_to_texture(tiles.$tile_ids);
|
||||
REQUIRE(matrix::width(map) == matrix::width(tiles.$tile_ids));
|
||||
REQUIRE(matrix::height(map) == matrix::height(tiles.$tile_ids));
|
||||
auto& walls = level.map->walls();
|
||||
REQUIRE(matrix::width(tiles) == matrix::width(walls));
|
||||
REQUIRE(matrix::height(tiles) == matrix::height(walls));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue