Journey encounters and 360 camera, Ludus training ground, offline gold fix, new music, settings layout, grounded KO, thraex shield, arena name chant

Stand von main 9c35eff2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-10 10:47:49 +01:00
parent 0454683fc3
commit c516679674
26 changed files with 856 additions and 151 deletions

View File

@@ -20,6 +20,7 @@ namespace GladiatorIdle.Arena
float _mTime, _mBlend = 1;
bool _mFree;
float _lift; // Höhe über dem Boden (Sprungangriff)
float _ground, _restLow; // Absenken liegender Figuren (Modell-Einheiten), tiefster Punkt der Grundhaltung
public bool Is3D => _model != null;
@@ -44,6 +45,7 @@ namespace GladiatorIdle.Arena
_model.SetColor(color);
var idle = Clip3("idle");
_model.Pose(idle, 0, true);
_restLow = _model.LowestY();
double tColor = sw.Elapsed.TotalMilliseconds;
// Einpassen hängt nur von der Figur ab (sortiert alle Punkte): einmal je Bild-Name rechnen
if (!_fitCache.TryGetValue(_art, out _fit)) _fitCache[_art] = _fit = _model.FitNow();
@@ -172,6 +174,9 @@ namespace GladiatorIdle.Arena
_mBlend = MathF.Min(1, _mBlend + realDt / 0.12f);
_mTime = t;
m.Pose(Clip3(name), t, loop, _mBlend, rootY: f.State == DuelState.Leap ? 0.15f : 1);
// am Boden liegend: tiefster Punkt auf den Boden (die Todesbewegung passt nicht genau zur Figur)
float ground = f.State == DuelState.Down ? m.LowestY() - _restLow : 0;
_ground += (ground - _ground) * MathF.Min(1, realDt * 12);
// Sprungangriff: eigene Flugkurve (der Clip springt kaum und passt nicht zur kurzen Sprungzeit)
float air = (float)Duel.LEAP_HIT + 0.08f, leapT = (float)f.StateTime;
float lift = f.State == DuelState.Leap && leapT < air ? MathF.Sin(MathF.PI * leapT / air) * 0.55f * Stage.FigH : 0;
@@ -186,7 +191,7 @@ namespace GladiatorIdle.Arena
{
float s = Stage.FigH / 180f * (1 + grow);
float yaw = Facing * MathHelper.ToRadians(72); // zum Gegner, leicht zum Betrachter gedreht
return _fit * Matrix.CreateRotationY(yaw)
return Matrix.CreateTranslation(0, -_ground, 0) * _fit * Matrix.CreateRotationY(yaw)
* Matrix.CreateScale(s * (1 - _sq * 0.04f), -s * (1 + _sq * 0.06f), s) // y nach unten
* Matrix.CreateRotationZ(_lean * Facing)
* Matrix.CreateTranslation(X + _off * Facing * 0.35f * Stage.Scale, Stage.FloorY - _lift, 0);