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:
@@ -472,27 +472,51 @@ namespace GladiatorIdle.Arena
|
||||
D.Text(sb, Assets.SansBold, 21, value, new Vector2(x + 320, y), Color.White, Align.Right);
|
||||
}
|
||||
|
||||
/// Ludus: Wert zum Üben gewählt (das Spiel startet die Übung).
|
||||
public Stat? ChosenTraining;
|
||||
|
||||
void DrawLudus(SpriteBatch sb, RectangleF r)
|
||||
{
|
||||
float x = r.X + 30, y = r.Y + 40;
|
||||
D.Text(sb, Assets.Serif, 30, L.t("main.ludus"), new Vector2(x, y), D.Gold);
|
||||
y += 40;
|
||||
// Trainingsplatz: Kraft (Energie) und vier Übungen
|
||||
int full = (int)_game.TrainEnergy;
|
||||
for (int i = 0; i < Balance.TRAIN_ENERGY_MAX; i++)
|
||||
{
|
||||
var pip = new RectangleF(r.Right - 60 - (Balance.TRAIN_ENERGY_MAX - i) * 34, y + 6, 26, 26);
|
||||
D.Rect(sb, pip, i < full ? D.Gold : new Color(60, 46, 30));
|
||||
D.Frame(sb, pip, D.Border, 2);
|
||||
}
|
||||
string energy = _game.TrainEnergyNextIn > 0 ? string.Format(L.t("ludus.train.next"), NumberFormat.Duration(_game.TrainEnergyNextIn)) : L.t("ludus.train.full");
|
||||
D.Text(sb, Assets.Sans, 17, energy, new Vector2(r.Right - 60 - Balance.TRAIN_ENERGY_MAX * 34 - 16, y + 10), D.Sand, Align.Right);
|
||||
y += 46;
|
||||
D.TextWrap(sb, Assets.Sans, 18, L.t("ludus.train.intro"), new RectangleF(x, y, r.Width - 60, 50), D.Dim);
|
||||
y += 50;
|
||||
float bw = (r.Width - 60 - 3 * 12) / 4;
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
var st = (Stat)i;
|
||||
var b = new RectangleF(x + i * (bw + 12), y, bw, 74);
|
||||
if (_ui.Button(sb, b, L.t(TextKeys.Of(st)), _game.CanTrain, size: 20, accent: D.Gold) && _game.CanTrain) { ChosenTraining = st; SoundManager.PlayClick(); }
|
||||
D.Text(sb, Assets.Sans, 15, string.Format(L.t("ludus.train.per"), NumberFormat.Format(_game.TrainXpPerAction(st))), new Vector2(b.Center.X, b.Bottom + 14), D.Dim, Align.Center);
|
||||
}
|
||||
y += 112;
|
||||
foreach (var u in UpgradeDef.All)
|
||||
{
|
||||
var row = new RectangleF(x, y, r.Width - 60, 84);
|
||||
var row = new RectangleF(x, y, r.Width - 60, 72);
|
||||
D.Rect(sb, row, new Color(30, 22, 15) * 0.9f);
|
||||
D.Frame(sb, row, D.Border, 2);
|
||||
if (Assets.Sprite(Art.Upgrade(u)) is Texture2D icon)
|
||||
sb.Draw(icon, new Vector2(row.X + 42, row.Center.Y), null, Color.White, 0, new Vector2(icon.Width / 2f, icon.Height / 2f), 64f / icon.Width, SpriteEffects.None, 0);
|
||||
int level = _game.UpgradeLevel(u.Id);
|
||||
D.Text(sb, Assets.SansBold, 21, L.t(u.Key), new Vector2(row.X + 86, row.Y + 24), Color.White);
|
||||
D.Text(sb, Assets.Sans, 17, string.Format(L.t("ludus.level"), level), new Vector2(row.X + 86, row.Y + 56), D.Sand);
|
||||
D.Text(sb, Assets.SansBold, 21, L.t(u.Key), new Vector2(row.X + 86, row.Y + 20), Color.White);
|
||||
D.Text(sb, Assets.Sans, 17, string.Format(L.t("ludus.level"), level), new Vector2(row.X + 86, row.Y + 50), D.Sand);
|
||||
string desc = u.Stat is Stat s ? string.Format(L.t("upgrade.trainer.desc"), L.t(TextKeys.Of(s))) : L.t(u.Key + ".desc");
|
||||
D.TextWrap(sb, Assets.Sans, 17, desc, new RectangleF(row.X + 330, row.Y + 14, row.Width - 330 - 260, 64), D.Dim);
|
||||
D.TextWrap(sb, Assets.Sans, 17, desc, new RectangleF(row.X + 330, row.Y + 8, row.Width - 330 - 260, 60), D.Dim);
|
||||
double cost = _game.UpgradeCost(u.Id);
|
||||
if (_ui.Button(sb, new RectangleF(row.Right - 240, row.Y + 16, 224, 52), string.Format(L.t("btn.buy"), NumberFormat.Format(cost)), _game.Gold >= cost, size: 19))
|
||||
if (_ui.Button(sb, new RectangleF(row.Right - 240, row.Y + 12, 224, 48), string.Format(L.t("btn.buy"), NumberFormat.Format(cost)), _game.Gold >= cost, size: 19))
|
||||
if (_game.Buy(u.Id)) SoundManager.PlayPurchase();
|
||||
y += 92;
|
||||
y += 78;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user