#72: The packet ship, the lifeline mortar and the gull-kite
Eric chose option B on #72. The drop is now the GDD's launch: - A packet ship sails a seeded straight line past the island, offshore, as close in as it can while keeping 45 m of open water from any land (eight-way probes; up to 32 headings, then the four world sides). - Jump fires the lifeline mortar along the look heading. How high the player aims sets the charge (-10 to 45 degrees: 16 to 110 m/s over the ground; every shot climbs at 75 m/s). The climb can't be steered and the kite can't open until the arc tops out. Riders still aboard at the end are fired towards the middle of the island. - Drop.reach() mirrors the fall for both ways down (kite at the top, or a fall with the kite opening by itself); bots, the soak and autoplay clients and the tutorial pilot aim with Drop.aim_charge(). - Bots fire at their landing spot once abeam of it, when in easy reach at their own staggered moment, or just before the route ends, and open the kite early only when the spot is beyond the rest of a fall. - Art: VesselModels.ship() (two-masted packet, tanned square sails, a salt-white boot-top, a bowsprit and the mortar on its bed, mirrored to face the island), the figure's gull-kite (figure.py), and a lifeline cord from the muzzle to each player still climbing. - Renamed barge to ship and wing-sail to gull-kite throughout code, tests, captures, docs and the tutorial text. make match now defaults to seed 2, where the scripted player still harvests and builds. Closes #72 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -36,7 +36,7 @@ const ANIMATED: Array[String] = [
|
||||
const PARENT: Dictionary = {
|
||||
"hips": "", "waist": "hips", "spine": "waist", "neck": "spine",
|
||||
"shoulder_r": "spine", "elbow_r": "shoulder_r", "shoulder_l": "spine", "elbow_l": "shoulder_l",
|
||||
"hip_r": "hips", "knee_r": "hip_r", "hip_l": "hips", "knee_l": "hip_l", "sail": "",
|
||||
"hip_r": "hips", "knee_r": "hip_r", "hip_l": "hips", "knee_l": "hip_l", "kite": "",
|
||||
}
|
||||
## Part model -> the joint pivot it hangs on.
|
||||
const PART_JOINT: Dictionary = {
|
||||
@@ -44,7 +44,7 @@ const PART_JOINT: Dictionary = {
|
||||
"upper_arm_r": "shoulder_r", "forearm_r": "elbow_r",
|
||||
"upper_arm_l": "shoulder_l", "forearm_l": "elbow_l",
|
||||
"thigh_r": "hip_r", "shin_r": "knee_r", "thigh_l": "hip_l", "shin_l": "knee_l",
|
||||
"sail": "sail",
|
||||
"kite": "kite",
|
||||
}
|
||||
## Material names in the part models -> Palette colours. COAT and COAT_DARK are the
|
||||
## player's own oilskin.
|
||||
@@ -52,6 +52,7 @@ const COLOURS: Dictionary = {
|
||||
"TAR": Palette.TAR, "TAR_WEATHERED": Palette.TAR_WEATHERED, "SKIN": Palette.SKIN,
|
||||
"INK": Palette.INK, "BARK": Palette.BARK, "CANVAS": Palette.CANVAS, "GILT": Palette.GILT,
|
||||
"PLANK": Palette.PLANK, "OCHRE_RED": Palette.OCHRE_RED, "TANNED_SAIL": Palette.TANNED_SAIL,
|
||||
"SALT": Palette.SALT,
|
||||
}
|
||||
const COAT_SHADE: float = 0.28
|
||||
## The states of `move`, in input order.
|
||||
@@ -88,7 +89,7 @@ var speed: float = 0.0
|
||||
|
||||
var _hand: Node3D
|
||||
var _held: MeshInstance3D
|
||||
var _sail: Node3D
|
||||
var _kite: Node3D
|
||||
var _pitch: float = 0.0
|
||||
var _holding: bool = true
|
||||
var _airborne: float = 0.0
|
||||
@@ -124,8 +125,8 @@ func _init(coat_colour: Color = Palette.OILSKIN) -> void:
|
||||
instance.name = part
|
||||
instance.mesh = mesh
|
||||
(joints[PART_JOINT[part]] as Node3D).add_child(instance)
|
||||
_sail = joints["sail"]
|
||||
_sail.visible = false
|
||||
_kite = joints["kite"]
|
||||
_kite.visible = false
|
||||
_hand = Node3D.new()
|
||||
_hand.name = "hand_r"
|
||||
_hand.position = _vector(layout.get("hand_r", [-0.24, 0.86, 0.03])) - _vector(at.get("elbow_r", [0, 0, 0]))
|
||||
@@ -163,7 +164,7 @@ static func part_mesh(part: String, coat_colour: Color) -> ArrayMesh:
|
||||
|
||||
## H1: one surface per finish instead of one per colour, with each Palette colour
|
||||
## carried as a vertex colour. The model's surfaces are separate draw calls in every
|
||||
## pass, and 24 figures crowded on the barge passed the draw-call budget; merged, a
|
||||
## pass, and 24 figures crowded on the ship passed the draw-call budget; merged, a
|
||||
## figure costs a third of the draws and looks the same. Each surface is named after
|
||||
## its finish: FINISH_COAT, FINISH_GILT or FINISH_PLAIN.
|
||||
static func _merged(source: Mesh, coat_colour: Color) -> ArrayMesh:
|
||||
@@ -256,8 +257,8 @@ func held() -> MeshInstance3D:
|
||||
return _held
|
||||
|
||||
|
||||
func sail() -> Node3D:
|
||||
return _sail
|
||||
func kite() -> Node3D:
|
||||
return _kite
|
||||
|
||||
|
||||
## Sets the tree from an entity's replicated state. `delta` is the time since the last
|
||||
@@ -283,7 +284,7 @@ func drive(entity: SimEntity, delta: float) -> void:
|
||||
flinch()
|
||||
_last_health = entity.health
|
||||
_pitch = float(entity.pitch) / PlayerCommand.PITCH_MAX * (PI * 0.5)
|
||||
_sail.visible = state == "glide"
|
||||
_kite.visible = state == "glide"
|
||||
_hand.visible = _holding
|
||||
tree.set("parameters/move/transition_request", state)
|
||||
tree.set("parameters/ground/blend_position", speed)
|
||||
|
||||
Reference in New Issue
Block a user