Oath speech in the deep warrior voice, cinematic camera, crowd calls your name

Stand von main 730ac6a2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-09 21:43:38 +01:00
parent 9c433c61ba
commit 0454683fc3
29 changed files with 1249 additions and 57 deletions

View File

@@ -123,8 +123,12 @@ namespace GladiatorIdle.Arena
}
/// Zeichnen in der Vordergrund-Ebene (eigene Kamera-Matrix mit Parallaxe).
/// Deckkraft (Kinofahrt: das Publikum im Vordergrund tritt zurück).
public float Alpha = 1;
public void Draw(SpriteBatch sb, bool calm)
{
if (Alpha <= 0.01f) return;
foreach (var f in _fans)
{
// jubelnd: Fäuste im eigenen Takt hoch und runter (Wechsel der Bilder)
@@ -139,7 +143,7 @@ namespace GladiatorIdle.Arena
float scale = f.H / tex.Height;
float bottom = f.H > 260 ? Camera.H + 175 : Camera.H + 70;
var pos = new Vector2(f.X, bottom - bob);
var c = new Color(f.Shade * 1.1f, f.Shade * 0.9f, f.Shade * 0.75f);
var c = new Color(f.Shade * 1.1f, f.Shade * 0.9f, f.Shade * 0.75f) * Alpha;
sb.Draw(tex, pos, null, c, calm ? 0 : f.Tilt, new Vector2(tex.Width / 2f, tex.Height),
new Vector2(scale / MathF.Sqrt(stretch), scale * stretch * breathe),
f.Mirror ? SpriteEffects.FlipHorizontally : SpriteEffects.None, 0);
@@ -149,7 +153,7 @@ namespace GladiatorIdle.Arena
{
float a = MathF.Min(1, p.Life * 1.5f);
float flip = MathF.Abs(MathF.Cos(p.Angle * 1.7f)); // dreht sich in der Luft
sb.Draw(Assets.Disc, p.Pos, null, p.Color * a, p.Angle, new Vector2(64), new Vector2(p.Size / 128f, p.Size * (0.35f + 0.65f * flip) / 128f / 1.6f),
sb.Draw(Assets.Disc, p.Pos, null, p.Color * (a * Alpha), p.Angle, new Vector2(64), new Vector2(p.Size / 128f, p.Size * (0.35f + 0.65f * flip) / 128f / 1.6f),
SpriteEffects.None, 0);
}
}