New bossfight layout with fake 'paper cutouts' to work out how the UI would work.

This commit is contained in:
Zed A. Shaw 2025-09-24 01:29:36 -04:00
parent a4fdfb779f
commit d398b042a7
13 changed files with 79 additions and 20 deletions

View file

@ -38,7 +38,7 @@ TEST_CASE("make sure json_mods works", "[components]") {
if(comp_data["_type"] == "BossFight") {
auto comp = components::convert<components::BossFight>(comp_data);
// the boss fight for the rat king doesn't have a stage so false=optional
REQUIRE(comp.stage == std::nullopt);
REQUIRE(comp.floor != std::nullopt);
}
}
@ -51,11 +51,11 @@ TEST_CASE("make sure json_mods works", "[components]") {
components::configure_entity(world, rat_king, config["RAT_KING"]["components"]);
auto boss = world.get<BossFight>(rat_king);
REQUIRE(boss.stage == std::nullopt);
REQUIRE(boss.floor != std::nullopt);
// now load the other one for the other way optional is used
auto devils_fingers = world.entity();
components::configure_entity(world, devils_fingers, config["DEVILS_FINGERS"]["components"]);
auto boss2 = world.get<BossFight>(devils_fingers);
REQUIRE(boss2.stage != std::nullopt);
REQUIRE(boss2.floor != std::nullopt);
}