diff options
author | Aki <please@ignore.pl> | 2022-11-24 18:43:35 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-11-24 18:43:35 +0100 |
commit | a8929c77736b98781866dcd8bd5556991e023c23 (patch) | |
tree | 634edc92d899ac7db371b22b3b7fd9cedcdc6214 /battles/src | |
parent | d079345f836aae863f3d615ea80bf4cc2ff14dbb (diff) | |
download | kurator-a8929c77736b98781866dcd8bd5556991e023c23.zip kurator-a8929c77736b98781866dcd8bd5556991e023c23.tar.gz kurator-a8929c77736b98781866dcd8bd5556991e023c23.tar.bz2 |
Applied ship designs and stats to current sample scenario and universe
Diffstat (limited to 'battles/src')
-rw-r--r-- | battles/src/Builder.cpp | 7 | ||||
-rw-r--r-- | battles/src/scenarios.cpp | 34 |
2 files changed, 23 insertions, 18 deletions
diff --git a/battles/src/Builder.cpp b/battles/src/Builder.cpp index 4ead634..d7cc893 100644 --- a/battles/src/Builder.cpp +++ b/battles/src/Builder.cpp @@ -30,7 +30,12 @@ Builder::operator()(const universe::ShipType& ship_type, const int team) const registry.emplace<universe::ShipType>(entity, ship_type); registry.emplace<Team>(entity, team); registry.emplace<Transform>(entity, spawner.get(team)); - registry.emplace<FloatingMovement>(entity, 0.5, 2.0, 3.0, 0.1); + registry.emplace<FloatingMovement>( + entity, + ship_type.max_speed, + ship_type.max_speed * 2.0, + ship_type.max_speed * 3.0, + 100.0); registry.emplace<AIState>(entity, Point{0.0, 0.0}); registry.emplace<HitPoints>(entity, ship_type.base_health_points); return entity; diff --git a/battles/src/scenarios.cpp b/battles/src/scenarios.cpp index 7a79942..34b4a24 100644 --- a/battles/src/scenarios.cpp +++ b/battles/src/scenarios.cpp @@ -15,24 +15,24 @@ Scenario example() { return { - "example", + "Example", { - {0, "halo", {"cannon"}}, - {0, "halo", {"cannon"}}, - {0, "cube", {"cannon", "cannon"}}, - {0, "cube", {"cannon", "cannon"}}, - {0, "cube", {"cannon", "cannon"}}, - {0, "bell", {"cannon"}}, - {0, "bell", {"cannon"}}, - {0, "bell", {"cannon"}}, - {1, "halo", {"cannon"}}, - {1, "halo", {"cannon"}}, - {1, "bell", {"cannon"}}, - {1, "cube", {"cannon", "cannon"}}, - {1, "cube", {"cannon", "cannon"}}, - {1, "cube", {"cannon", "cannon"}}, - {1, "bell", {"cannon"}}, - {1, "bell", {"cannon"}}, + {0, "Anvil", {"ChargeLaser", "ChargeLaser"}}, + {0, "Anvil", {"ChargeLaser", "ChargeLaser"}}, + {0, "Anvil", {"ChargeLaser", "ChargeLaser"}}, + {0, "Warbringer", {"ChargeLaser"}}, + {0, "Warbringer", {"ChargeLaser"}}, + {0, "Eclipse", {"ChargeLaser"}}, + {0, "Eclipse", {"ChargeLaser"}}, + {0, "Eclipse", {"ChargeLaser"}}, + {1, "Anvil", {"ChargeLaser", "ChargeLaser"}}, + {1, "Anvil", {"ChargeLaser", "ChargeLaser"}}, + {1, "Anvil", {"ChargeLaser", "ChargeLaser"}}, + {1, "Warbringer", {"ChargeLaser"}}, + {1, "Warbringer", {"ChargeLaser"}}, + {1, "Eclipse", {"ChargeLaser"}}, + {1, "Eclipse", {"ChargeLaser"}}, + {1, "Eclipse", {"ChargeLaser"}}, }, }; } |