#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:
+40
-17
@@ -145,29 +145,49 @@ const SWIM_SPRINT_STAMINA_COST: int = 3
|
||||
const STAMINA_RECOVERY_RATE: int = 3
|
||||
const BREATH_RECOVERY_RATE: int = 4
|
||||
|
||||
# The drop, in metres and seconds. The sky barge crosses the island on a straight
|
||||
# seeded route through a point within BARGE_CENTRE_JITTER of the middle.
|
||||
const BARGE_ALTITUDE: float = 150.0
|
||||
const BARGE_SPEED: float = 24.0
|
||||
# The drop (#72), in metres and seconds. The packet ship sails a straight seeded line
|
||||
# past the island, offshore, and players fire themselves inland by lifeline mortar.
|
||||
## The deck the players ride on, above the starting sea level.
|
||||
const SHIP_DECK_HEIGHT: float = 4.0
|
||||
const SHIP_SPEED: float = 16.0
|
||||
## The route starts and ends this far inside the world's edge.
|
||||
const BARGE_ROUTE_MARGIN: float = 40.0
|
||||
const BARGE_CENTRE_JITTER: float = 140.0
|
||||
## Every route crosses at least this much dry land.
|
||||
const BARGE_MIN_LAND_METRES: float = 250.0
|
||||
## Fraction of the barge's speed a leaping player keeps.
|
||||
const LEAP_CARRY: float = 0.4
|
||||
const SHIP_ROUTE_MARGIN: float = 40.0
|
||||
## The route keeps this much open water between itself and the coast. The planner tries
|
||||
## routes from SHIP_OFFSET_MIN to SHIP_OFFSET_MAX from the middle of the world, in
|
||||
## SHIP_OFFSET_STEP steps, and takes the first that is clear, for up to SHIP_ROUTE_TRIES
|
||||
## headings. Sea counts as open where the bottom is SHIP_DRAUGHT under the water.
|
||||
const SHIP_COAST_CLEARANCE: float = 45.0
|
||||
const SHIP_DRAUGHT: float = 1.0
|
||||
const SHIP_OFFSET_MIN: float = 300.0
|
||||
const SHIP_OFFSET_MAX: float = 465.0
|
||||
const SHIP_OFFSET_STEP: float = 6.0
|
||||
const SHIP_CLEARANCE_STEP: float = 6.0
|
||||
const SHIP_ROUTE_TRIES: int = 32
|
||||
## A route shorter than this (one cutting a corner of the world) isn't used.
|
||||
const SHIP_MIN_ROUTE_METRES: float = 420.0
|
||||
## The lifeline mortar: every shot climbs at MORTAR_RISE_SPEED; its speed over the
|
||||
## ground runs from MORTAR_MIN_SPEED to MORTAR_MAX_SPEED with the charge, which comes
|
||||
## from how high the player aims, from MORTAR_PITCH_LOW_DEGREES to ..._HIGH_DEGREES.
|
||||
const MORTAR_RISE_SPEED: float = 75.0
|
||||
const MORTAR_MIN_SPEED: float = 16.0
|
||||
const MORTAR_MAX_SPEED: float = 110.0
|
||||
const MORTAR_PITCH_LOW_DEGREES: float = -10.0
|
||||
const MORTAR_PITCH_HIGH_DEGREES: float = 45.0
|
||||
## Riders fired at the end of the route are sent this fraction of the way to the middle
|
||||
## of the island, so they land inland without all landing on one spot.
|
||||
const MORTAR_FORCED_REACH: float = 0.8
|
||||
const FREEFALL_MAX_SPEED: float = 32.0
|
||||
## Horizontal speed a falling player can steer to, before and after the sail opens.
|
||||
## Horizontal speed a falling player can steer to, before and after the kite opens.
|
||||
const FREEFALL_STEER_SPEED: float = 9.0
|
||||
const GLIDE_SPEED: float = 13.0
|
||||
## How fast horizontal speed changes while steering a fall, in metres per second squared.
|
||||
const DROP_STEER_ACCEL: float = 20.0
|
||||
## Sink rate under an open wing-sail, and how hard opening it brakes the fall.
|
||||
## Sink rate under an open gull-kite, and how hard opening it brakes the fall.
|
||||
const GLIDE_FALL_SPEED: float = 5.5
|
||||
const GLIDE_BRAKE: float = 60.0
|
||||
## The sail opens by itself this high above the ground or water.
|
||||
const WING_AUTO_DEPLOY_HEIGHT: float = 40.0
|
||||
## Within this height of the ground or water, the sail folds and the player drops the rest.
|
||||
## The kite opens by itself this high above the ground or water.
|
||||
const KITE_AUTO_DEPLOY_HEIGHT: float = 40.0
|
||||
## Within this height of the ground or water, the kite folds and the player drops the rest.
|
||||
const DROP_LAND_HANDOFF: float = 1.0
|
||||
|
||||
# The island. Worldgen fills the whole world square; the island is about a kilometre
|
||||
@@ -319,7 +339,10 @@ const BOT_ENGAGE_METRES: float = 30.0
|
||||
## away from its opponent, and won't break off again until as long again has passed.
|
||||
const BOT_RETREAT_SECONDS: float = 6.0
|
||||
const BOT_RETREAT_METRES: float = 30.0
|
||||
## A bot weighs this many landing spots near the barge's line and takes the one with
|
||||
## A bot lands at a loot marker no further than this from the ship's line (#72: within
|
||||
## the lifeline mortar's reach).
|
||||
const BOT_LANDING_REACH_METRES: float = 600.0
|
||||
## A bot weighs this many landing spots near the ship's line and takes the one with
|
||||
## the fewest other bots' landings within BOT_LANDING_SPREAD_METRES.
|
||||
const BOT_LANDING_CHOICES: int = 8
|
||||
const BOT_LANDING_SPREAD_METRES: float = 60.0
|
||||
@@ -608,7 +631,7 @@ const LOOT_SCATTER_METRES: float = 0.7
|
||||
# Balance targets (H3), judged by `make balance` over bot-only matches; see docs/BALANCE.md.
|
||||
## The pass needs at least this many matches.
|
||||
const BALANCE_MIN_MATCHES: int = 200
|
||||
## The median match, from the barge leaving to the last player standing, lasts this
|
||||
## The median match, from the ship leaving to the last player standing, lasts this
|
||||
## many minutes.
|
||||
const BALANCE_MEDIAN_MINUTES_MIN: float = 12.0
|
||||
const BALANCE_MEDIAN_MINUTES_MAX: float = 18.0
|
||||
|
||||
Reference in New Issue
Block a user