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

@@ -206,6 +206,14 @@ namespace GladiatorIdle.Gfx
public Clip? Find(string name) => Clips.Find(c => c.Name == name);
/// Tiefster Punkt der jetzigen Haltung (Modell-Raum, jeder 4. Punkt genügt): liegende Figuren auf den Boden setzen.
public float LowestY()
{
float lo = float.MaxValue;
for (int i = 0; i < Vertices.Length; i += 4) lo = MathF.Min(lo, Vertices[i].Position.Y);
return lo;
}
/// Bewegungen, die mit einer anderen Figur geladen wurden, haben die Hüfte (Wurzel-Knochen) in
/// anderer Höhe oder anderem Maßstab – die Figur schwebt oder versinkt. Je Clip die Wurzel-Bewegung
/// gemeinsam skalieren, sodass ihre Höhe zu den übrigen Clips der Figur passt.
@@ -797,7 +805,7 @@ namespace GladiatorIdle.Gfx
}
else
{
if (kind == "parmula") { W = 40; H = 48; BEND = 0.02f; } // kleiner Schild der Thraker
if (kind == "parmula") { W = 46; H = 56; BEND = 0.014f; } // kleiner Schild der Thraker
// x: Länge (entlang des Arms), y: Breite, z: nach außen (weg vom Arm), gewölbt um die Längsachse
b.Curved(W, H, BEND, face, 1.2f);
b.Rim(W, H, BEND, rim);
@@ -808,7 +816,7 @@ namespace GladiatorIdle.Gfx
var shield = b.Build(Bone(side + "Hand"), Matrix.CreateScale(Unit) * Attach(Bone(side + "Hand"), across, Vector3.Cross(knuckles, across), centre));
shield.Shield = true; shield.Height = H; shield.Width = W; shield.Bend = BEND;
// Skelett ohne Finger: die Handdrehung passt nach der Übertragung der Bewegungen nicht zuverlässig
shield.Upright = Bone(side + "HandMiddle1") < 0;
shield.Upright = Bone(side + "HandMiddle1") < 0 || kind == "parmula"; // Parmula: aufrecht, die Handdrehung der Thraker-Figur passt nicht
Props.Add(shield);
}
@@ -987,7 +995,7 @@ namespace GladiatorIdle.Gfx
public void Curved(float w, float h, float bend, Color col, float thick)
{
const int NX = 8, NY = 10;
const int NX = 16, NY = 20;
for (int side = 0; side < 2; side++)
for (int i = 0; i < NX; i++)
for (int j = 0; j < NY; j++)
@@ -1002,7 +1010,7 @@ namespace GladiatorIdle.Gfx
public void Rim(float w, float h, float bend, Color col)
{
const int N = 10;
const int N = 24;
for (int j = 0; j < N; j++)
{
float y0 = -w / 2 + w * j / N, y1 = -w / 2 + w * (j + 1) / N;
@@ -1022,7 +1030,7 @@ namespace GladiatorIdle.Gfx
public void Dome(Vector3 c, float r, float hgt, Color col)
{
const int SEG = 12, RING = 4;
const int SEG = 24, RING = 8;
for (int k = 0; k < RING; k++)
for (int s = 0; s < SEG; s++)
{