Log inGet started
World

Anvil Crown

Branchmain
Branchesmain
Commit0c3c8404d1

README.md

airframe — the storm-runner

The hero asset of ANVIL CROWN: the single-seat storm-runner the player flies up the shaft, and everything that makes it read as a machine somebody has been flying through weather for a while.

What it is made of

PartWhat it carries
HullThe lofted fuselage, wings, winglets, tail fins, dorsal strake, gun pods, engine housing and canopy frames — one mesh, one plated material.
TrimThe warning paint: three chevrons on each wing root and the collar aft of the gun ports.
CanopyArmoured glass over the cockpit — transmissive, clearcoated, framed.
Pilot / VisorThe pilot behind the glass, and the amber instrument light on the visor.
GunHeatTwo collars at the muzzles. They carry the cannon's whole heat curve.
FlareThe engine bell's plume. It lengthens in an updraft and gutters in a downdraft.
NavPort / NavStarPort and starboard strobes, out of phase, so the silhouette survives a dark shaft.
FlapPort / FlapStarAilerons, hinged at the wing trailing edge.
RudPort / RudStarRudders on the tail fins.
AlarmThe warning paint again, in alarm red, flashing while the hull is in its invulnerability window.

How it plugs in

require("game.airframe.runner")

That registers the airframe system with AnvilDirector at order 50 and sets A.claims.airframe, which stands the director's stand-in wedge down. The AirframeRig component next door does the require for you when the scene brings it up.

The rig is built onto A.anchors.runner — the local pilot's body — and is rebuilt automatically if that body is replaced. It writes nothing on A.state. Flight owns the runner's motion and the body's own bank and yaw; everything here is a second layer on top of it, so the two never fight over the same number:

  • the airframe rolls a little further than the hull and settles a beat behind it;
  • the nose lifts under vertical thrust;
  • the ailerons and rudders deflect into the turn;
  • the whole thing trembles, harder while state.shake is up.

Reading it

  • require("game.airframe.runner").rig() — the live parts, by name.
  • require("game.airframe.runner").preview(host) — a loose, un-animated copy under host, for a beauty shot or a silhouette check.
  • require("game.airframe.authoring").generate() — re-author every mesh and material from the geometry in game.airframe.runnermesh.