five-on-it / packages/sim/src/ladders
packages/sim/src/ladders
Ladders (GAME_DESIGN §5.5): the level's ladders (LevelData.ladders), climbed with the interaction key at a ladder's foot or at its top (ladderAt offers it, startClimb takes it). A climber hangs on the ladder's line, a step back from its wall, facing the wall, with no gravity: the forward key climbs, the back key goes down, faster with the run key (LADDER). At the top it steps off onto the floor beyond the wall's edge; at the foot it stands on the floor; the jump key lets go anywhere, and it falls from there (character.ts's falls). Nobody fires while climbing. The climber's state is Character.climbing (its ladder's index plus one): the snapshots carry it as the climb act, and a client's twin finds its ladder by where it hangs (ladderNear).