Feldzugkarte, Reise in 3D, Kampfstile der Gegner, Missio, inszenierte Heimkehr
Stand von main 8c62f0dd. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -21,6 +21,10 @@ namespace GladiatorIdle.Arena
|
||||
/// Nach dem Kampf: langsam auf den Sieger zufahren (null = wieder beide zeigen).
|
||||
public float? FocusX;
|
||||
|
||||
/// Reise-Ansicht: der Figur frei folgen (keine Begrenzung auf die Arena-Mitte).
|
||||
public float? FollowX;
|
||||
public float FollowZoom = 1f;
|
||||
|
||||
public void Punch(float amount, Vector2 at) { _punch = MathF.Max(_punch, amount); _punchAt = at; }
|
||||
|
||||
/// Ziel: Mitte zwischen den Kämpfern, je näher, desto enger.
|
||||
@@ -32,6 +36,7 @@ namespace GladiatorIdle.Arena
|
||||
var target = new Vector2(MathHelper.Clamp(mid, W / 2 - 220, W / 2 + 220), H / 2 + 40);
|
||||
float k = 1 - MathF.Exp(-dt * 3.5f);
|
||||
if (FocusX is float fx) { targetZoom = 1.4f; target = new Vector2(fx, H / 2 + 30); k = 1 - MathF.Exp(-dt * 1.2f); }
|
||||
if (FollowX is float fw) { targetZoom = FollowZoom; target = new Vector2(fw, H / 2 + 40); k = 1 - MathF.Exp(-dt * 4f); } // Reise: ohne Begrenzung
|
||||
Center += (target - Center) * k;
|
||||
Zoom += (targetZoom - Zoom) * k;
|
||||
_trauma = MathF.Max(0, _trauma - dt * 1.7f);
|
||||
|
||||
Reference in New Issue
Block a user