feat(vehicles): 16 - a horse walks on legs in the game's physics (VehicleLegs): the package keeps its pace, stamina, hay and its refusal of water; the legs meet the ground, its steps and slopes and whatever is in the way, and what they cover along its heading is its speed, so a fence stops it and a trunk it glances pushes it aside. VehicleWorld.blocked is gone; the hire, hay and follow verbs move to keep.ludic
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1fc01df39c
commit
bb2a4c10af
9 changed files with 156 additions and 74 deletions
|
|
@ -3,7 +3,10 @@
|
|||
# read back and pushed by the wind in vehicles_tick, which the game calls where the world is run
|
||||
export function vehicles_reset(vehicles_st: mut VehiclesState) -> void {
|
||||
if vehicles_st.ve_list != null {
|
||||
for i in 0 .. len(vehicles_st.ve_list) { if vehicles_st.ve_list[i].kind == VEHICLE_BOAT { VehicleHull.gone(vehicles_st.ve_list[i].nid) } }
|
||||
for i in 0 .. len(vehicles_st.ve_list) {
|
||||
let v = vehicles_st.ve_list[i]
|
||||
if v.kind == VEHICLE_BOAT { VehicleHull.gone(v.nid) } else { VehicleLegs.gone(v.nid) }
|
||||
}
|
||||
}
|
||||
vehicles_st.ve_list = new []Vehicle
|
||||
vehicles_st.ve_cur = null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue