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

@ -51,6 +51,7 @@ namespace GrassCutter
Cheats.Run("ship 60");
BuildRules.AnyGround = true;
yield return new WaitForSeconds(0.5f);
yield return StillKey();
yield return StillCrew();
yield return StillMachines();
yield return StillFactory();
@ -79,6 +80,55 @@ namespace GrassCutter
// ───────────────────────── by day ─────────────────────────
/// <summary>
/// `x_key`: the key art, from the game itself. The crew mows across the meadow in a staggered line, each trailing a
/// cut stripe, under the ringed giant. The camera looks the giant's way, so it hangs over the field; `-shotsize`
/// picks the frame (wide for the capsules and hero, upright for the library and vertical capsules), and the
/// lens widens on an upright frame so the giant and the crew both fit.
/// </summary>
IEnumerator StillKey()
{
if (!Wanted("x_key")) yield break;
Sky(0.55f, false);
bool tall = H > W;
// the spot and the lens can be tried from the command line without a new build
float x = Arg("-keyx", -80f), z = Arg("-keyz", 300f);
float dist = Arg("-keydist", tall ? 11f : 10f), aimUp = Arg("-keyaim", tall ? 10f : 9f), fov = Arg("-keyfov", tall ? 66f : 58f);
float spread = Arg("-keyspread", tall ? 2.4f : 3.6f);
// the giant hangs at (-0.55, 0.42, 0.72) in the sky above the base: look past it to the right, so it hangs
// over the left of the field and leaves the right for the logo
var giant = new Vector2(-0.55f, 0.72f).normalized;
var look = Rotate(giant, -Arg("-keyturn", tall ? 4f : 12f));
var right = new Vector2(look.y, -look.x);
var walk = (right * 0.55f - look * 0.85f).normalized; // toward us and a little across, faces showing
var abreast = new Vector2(walk.y, -walk.x); // across the frame
Vector3 At(Vector2 p, float h = 0f) => On(p.x, p.y, h);
var mid = new Vector2(x, z);
var who = new[] { 4, 1, 6, 2 };
var tools = new[] { ToolId.WideScythe, ToolId.LongScythe, ToolId.WideScythe, ToolId.Scythe };
for (int i = 0; i < who.Length; i++)
{
// a shallow V: the middle two lead, the outer two a step behind
var start = mid + abreast * ((i - 1.5f) * spread) - walk * (Mathf.Abs(i - 1.5f) * 1.4f);
MowMap.Cut(At(start - walk * 45f), At(start), 2.4f);
var s0 = start;
Actor(who[i], At(start), new Vector3(walk.x, 0f, walk.y), tools[i], true, s => At(s0 + walk * (s * 1.1f)));
}
var cam = mid - look * dist;
var aim = mid + look * 30f;
yield return Still("x_key", t => new Lens(At(cam, tall ? 2.6f : 2.8f), At(aim, aimUp), fov), 2f);
Strike();
}
static float Arg(string flag, float fallback) =>
float.TryParse(CommandLine.Get(flag), System.Globalization.NumberStyles.Float, System.Globalization.CultureInfo.InvariantCulture, out float v) ? v : fallback;
static Vector2 Rotate(Vector2 v, float degrees)
{
float r = degrees * Mathf.Deg2Rad, c = Mathf.Cos(r), s = Mathf.Sin(r);
return new Vector2(v.x * c - v.y * s, v.x * s + v.y * c);
}
IEnumerator StillCrew()
{
if (!Wanted(X("x_crew"))) yield break;