Compare commits

...

2 Commits

Author SHA1 Message Date
Daniel Perelman 4f64f045d3 Add 'Pass By'. 2023-10-14 15:43:43 -07:00
Daniel Perelman e1ca99ba51 Fix mad robin not in initial set. 2023-10-14 15:43:21 -07:00
1 changed files with 20 additions and 0 deletions

View File

@ -517,6 +517,8 @@ function moveAsLowLevelMoves({ move, nextMove, startingPos, numProgessions }: {
kind: PositionKind.Circle,
which: startPos.which,
facing: startPos.which.facingAcross(),
setOffset: startPos.setOffset,
lineOffset: startPos.lineOffset,
}
return combine([{
@ -1860,6 +1862,24 @@ function moveAsLowLevelMoves({ move, nextMove, startingPos, numProgessions }: {
});
}
case "pass by":
const passByShoulder = move.parameters.shoulder ? Hand.Left : Hand.Right;
return handlePairedMove(move.parameters.who, ({startPos, around, withPos}) => {
return combine([{
beats: move.beats,
// TODO Is pass by always a swap?
endPosition: withPos,
movementPattern: {
kind: SemanticAnimationKind.PassBy,
around,
facing: "Forward",
otherPath: "Swap",
side: passByShoulder,
withHands: false,
}
}], startPos);
});
case "pass through":
if (move.parameters.dir === "left diagonal" || move.parameters.dir === "right diagonal") {
// TODO There's logic for this below, but unsure it's right.