Test coverage back and save system should work again but have to confirm it in-game.
This commit is contained in:
parent
6b4ebf7629
commit
2576b16869
9 changed files with 43 additions and 31 deletions
|
@ -24,23 +24,6 @@ TEST_CASE("dumping and debugging", "[map]") {
|
|||
map.dump();
|
||||
}
|
||||
|
||||
|
||||
TEST_CASE("camera control", "[map]") {
|
||||
Map map(20, 20);
|
||||
WorldBuilder builder(map);
|
||||
builder.generate();
|
||||
|
||||
Point center = map.center_camera({10,10}, 5, 5);
|
||||
|
||||
REQUIRE(center.x == 8);
|
||||
REQUIRE(center.y == 8);
|
||||
|
||||
Point translation = map.map_to_camera({10,10}, center);
|
||||
|
||||
REQUIRE(translation.x == 2);
|
||||
REQUIRE(translation.y == 2);
|
||||
}
|
||||
|
||||
TEST_CASE("pathing", "[map]") {
|
||||
Map map(20, 20);
|
||||
WorldBuilder builder(map);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue