Feedback round: bots that keep working, Sky Mower, calmer HUD, faster menus, new map

- Robot docks and drone pads with no belt ship straight to Earth; robots widen
  their rings up to 4x once everything in reach is mown, travel 2.5x faster
  empty, hoppers 60/150 kg. Drone reach 70 m + 25 m per upgrade.
- New Sky Mower: a big mowing drone on a pad, 91 sectors, flies over the grass.
- Cut paint follows the blade as a strip, no disc ahead of the machine.
- Sector toasts aggregate, chimes and till sounds throttled, toasts moved and
  narrowed.
- Menus no longer rebuild on every money change (price tint follows the
  wallet), scroll position kept.
- Map drawn as one mesh, opens near the player, ME / + / - / GLOBE, scale bar.
- Key-art still (x_key) and -shotsize for the store stills; -demobots test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
NiemandKG
2026-11-09 15:38:37 +06:00
parent d1c3761e58
commit 27d075103b
44 changed files with 6801 additions and 5733 deletions

View File

@ -16,7 +16,7 @@ namespace GrassCutter
/// <summary>The demo's fast forward, on the server.</summary>
public static float Haste = 1f;
const float Tick = 0.2f, Overrun = 0.6f, IdleWait = 5f;
const float Tick = 0.2f, Overrun = 0.6f, IdleWait = 5f, TravelMul = 2.5f;
const float EngineVolume = 0.16f;
const int SearchLimit = 4000;
@ -104,8 +104,9 @@ namespace GrassCutter
All.Add(this);
if (IsServer) Seat(Planet.Up(transform.position));
_shown = _from = _to = At.Value;
_bobPhase = Random.value * 6.28f;
At.OnValueChanged += Heard;
_engine = Sfx.Loop("robot_mower_loop", Body, 0f);
_engine = Sfx.Loop(Def.hover > 0f ? "drone_loop" : "robot_mower_loop", Body, 0f);
}
public override void OnNetworkDespawn()
@ -202,7 +203,14 @@ namespace GrassCutter
var turn = Quaternion.Slerp(was, Quaternion.LookRotation(flat * nose, up), 1f - Mathf.Exp(-6f * Time.deltaTime));
// it glides: no shake, no bob, the moving parts do the living
bool going = _leg < 1f && (_to - _from).sqrMagnitude > 1e-4f;
body.SetPositionAndRotation(_shown, turn);
// a flyer hangs over the grass, bobbing a little, and leans into the way it goes
var at = _shown;
if (Def.hover > 0f)
{
at += up * (Def.hover + Mathf.Sin(Time.time * 1.9f + _bobPhase) * 0.15f);
turn *= Quaternion.Euler((going ? 8f : 0f) * -nose, 0f, Mathf.Sin(Time.time * 1.3f + _bobPhase) * 2f);
}
body.SetPositionAndRotation(at, turn);
Animate(body, Vector3.SignedAngle(was * Vector3.forward, turn * Vector3.forward, up) / Mathf.Max(1e-3f, Time.deltaTime), going);
}
@ -218,6 +226,7 @@ namespace GrassCutter
float _roll, _level;
bool _parts;
float _spun, _nextBlink = 2f, _blinkAt = -1f, _swayX, _swayV, _wasGoing, _go;
float _bobPhase;
void Animate(Transform body, float turnRate, bool going)
{
@ -226,7 +235,7 @@ namespace GrassCutter
_parts = true;
foreach (var c in body.GetComponentsInChildren<Transform>(true))
{
if (c.name.StartsWith("Spin")) _spin.Add((c, BaseRot.LocalAxisFor(c, body.up)));
if (c.name.StartsWith("Spin") || c.name.StartsWith("Rotor")) _spin.Add((c, BaseRot.LocalAxisFor(c, body.up)));
else if (c.name.StartsWith("Blink")) _blink.Add((c, BaseRot.LocalAxisFor(c, body.up), c.localScale));
else if (c.name.StartsWith("Sway")) _sway.Add(c);
else if (c.name.StartsWith("Wheel_"))
@ -238,7 +247,8 @@ namespace GrassCutter
if (c != body) BaseRot.Of(c);
}
}
_spun += Time.deltaTime * (Mowing.Value ? 1400f : 0f);
// a flyer's rotors never stop: it would fall out of the sky
_spun += Time.deltaTime * (Def.hover > 0f ? 1900f : Mowing.Value ? 1400f : 0f);
foreach (var (t, axis) in _spin)
t.localRotation = BaseRot.Of(t) * Quaternion.AngleAxis(_spun, axis == 0 ? Vector3.right : axis == 1 ? Vector3.up : Vector3.forward);
// the wheels roll with the ground going by, the clippings rise in the hopper
@ -291,7 +301,8 @@ namespace GrassCutter
var from = Planet.OnSurface(Dir);
// not RotateTowards: it calls anything under a tenth of a degree "there already", and that is 4 m on this ball
var gap = goal - Dir;
float step = Def.speed * Boost * dt / Planet.Radius;
// on the way somewhere (to a sector, home to unload) it goes faster than it mows
float step = Def.speed * Boost * (Homing || _travel ? TravelMul : 1f) * dt / Planet.Radius;
if (gap.magnitude > step) Dir = (Dir + gap.normalized * step).normalized;
else
{