W7: The drop: sky barge and wing-sail
Simulation.start_drop() plans a seeded straight route across the island at BARGE_ALTITUDE, through a point near the middle pulled onto land, and puts every player aboard. Riders move with the barge; jump leaps off with some of its speed. Freefall steers and tops out at FREEFALL_MAX_SPEED; jump opens the wing-sail, which also opens by itself WING_AUTO_DEPLOY_HEIGHT above the ground or water. Gliding sinks slowly and steers at GLIDE_SPEED, and the sail folds just above the ground or sea so landing does no damage. Anyone aboard at the end of the route is thrown off. Drop state is hashed. Every server match now starts with the drop. Bots leap at a time fixed by their player ID. The carrier's name and look are open in #72. Closes #14 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -77,6 +77,31 @@ 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 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 FREEFALL_MAX_SPEED: float = 32.0
|
||||
## Horizontal speed a falling player can steer to, before and after the sail 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.
|
||||
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.
|
||||
const DROP_LAND_HANDOFF: float = 1.0
|
||||
|
||||
# The island. Worldgen fills the whole world square; the island is about a kilometre
|
||||
# across, sized for 24 players. Heights are metres above the starting sea level.
|
||||
## Spacing of the terrain heightfield, in metres. The grid covers WORLD_SIZE_METRES.
|
||||
|
||||
Reference in New Issue
Block a user