diff options
author | Aki <please@ignore.pl> | 2022-11-24 18:36:37 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-11-24 18:42:21 +0100 |
commit | d079345f836aae863f3d615ea80bf4cc2ff14dbb (patch) | |
tree | 4ebd70c66f81602e6ad5832917cb1b57d5015c31 | |
parent | c2ecf09c29bc1d06336f372621ba37eba5f9875b (diff) | |
download | kurator-d079345f836aae863f3d615ea80bf4cc2ff14dbb.zip kurator-d079345f836aae863f3d615ea80bf4cc2ff14dbb.tar.gz kurator-d079345f836aae863f3d615ea80bf4cc2ff14dbb.tar.bz2 |
Increased size of the battlefield
-rw-r--r-- | battles/src/BaseBattle.cpp | 4 | ||||
-rw-r--r-- | kurator/src/Battle.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/battles/src/BaseBattle.cpp b/battles/src/BaseBattle.cpp index 0de18d5..33e0957 100644 --- a/battles/src/BaseBattle.cpp +++ b/battles/src/BaseBattle.cpp @@ -22,7 +22,7 @@ namespace battles BaseBattle::BaseBattle(const Scenario& scenario) : _registry {}, - spawner {scenario.total_teams(), 3.0, 0.2} + spawner {scenario.total_teams(), 12000, 0.1} { const auto repo = universe::load_sample(); Builder build {_registry, spawner}; @@ -81,7 +81,7 @@ BaseBattle::keep_at_range() continue; const auto target = _registry.get<Transform>(ai.target); const Point offset = target.position - self.position; - ai.destination = target.position - offset.normalized(); + ai.destination = target.position - offset.normalized().scale(6000.0); } } diff --git a/kurator/src/Battle.cpp b/kurator/src/Battle.cpp index 08cc6dc..da4e34a 100644 --- a/kurator/src/Battle.cpp +++ b/kurator/src/Battle.cpp @@ -73,7 +73,7 @@ Battle::draw() const ClearBackground(BLACK); const int width = GetScreenWidth(); const int height = GetScreenHeight(); - const double scale = std::min(width/10.0, height/10.0); + const double scale = std::min(width/30000.0, height/30000.0); auto& registry = battle->registry(); auto view = registry.view<const Marker, const battles::Transform>(); for (auto [entity, marker, transform] : view.each()) { |