#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:
@@ -1,6 +1,6 @@
|
||||
extends TestCase
|
||||
|
||||
## Issue A5: world art. Points of interest, build piece states, the barge and chests,
|
||||
## Issue A5: world art. Points of interest, build piece states, the ship and chests,
|
||||
## and no placeholder meshes left in the game.
|
||||
|
||||
## Primitive meshes that would be stand-ins for real models. PlaneMesh (the sea's
|
||||
@@ -150,12 +150,19 @@ func test_structure_view_redraws_a_piece_when_its_state_changes() -> void:
|
||||
view.free()
|
||||
|
||||
|
||||
func test_barge_and_chest_models() -> void:
|
||||
var barge: AABB = VesselModels.barge().get_aabb()
|
||||
assert_near(barge.position.y, -VesselModels.HULL_DEPTH, 0.05, "hull bottom")
|
||||
assert_near(barge.end.y, VesselModels.ENVELOPE_HEIGHT + VesselModels.ENVELOPE_AXES.y, 0.05, "envelope top")
|
||||
assert_near(barge.size.x, 2.0 * VesselModels.ENVELOPE_AXES.x, 0.05, "the envelope is the widest part")
|
||||
assert_true(barge.size.z >= 2.0 * VesselModels.HULL_HALF_LENGTH, "hull length")
|
||||
func test_ship_and_chest_models() -> void:
|
||||
var ship: AABB = VesselModels.ship().get_aabb()
|
||||
assert_near(ship.position.y, -VesselModels.HULL_DEPTH, 0.05, "hull bottom")
|
||||
assert_true(ship.position.y < -Tuning.SHIP_DECK_HEIGHT, "the keel is under the waterline")
|
||||
var tallest: float = 0.0
|
||||
for mast: Vector2 in VesselModels.MASTS:
|
||||
tallest = maxf(tallest, mast.y)
|
||||
assert_near(ship.end.y, tallest, 0.3, "the mainmast is the top")
|
||||
assert_true(ship.size.x >= 2.0 * VesselModels.HULL_HALF_BREADTH and ship.size.x < 12.0, "the yards are the widest part")
|
||||
assert_true(ship.size.z >= 2.0 * VesselModels.HULL_HALF_LENGTH, "hull and bowsprit length")
|
||||
# The mortar stands on the deck between the passengers and the foremast.
|
||||
assert_true(VesselModels.MORTAR_AT.z - 0.8 > 2.5 * EntityView.DECK_SPACING + 0.3, "clear of the passengers")
|
||||
assert_true(VesselModels.MORTAR_AT.z + 1.0 < VesselModels.MASTS[0].x, "clear of the foremast")
|
||||
var chest: AABB = VesselModels.chest().get_aabb()
|
||||
assert_near(chest.position.y, 0.0, 0.001, "chests stand on the ground")
|
||||
assert_near(chest.size.y, VesselModels.CHEST_SIZE.y + 0.01, 0.02)
|
||||
|
||||
Reference in New Issue
Block a user