Compare commits
No commits in common. "b572eb34c38bf52f3a26d051c2d97787949411ef" and "1c7f80e1c35d4149da8049cc4d09ab543370e3ff" have entirely different histories.
b572eb34c3
...
1c7f80e1c3
|
@ -827,9 +827,8 @@ function moveAsLowLevelMoves({ move, nextMove, startingPos, numProgessions }: {
|
|||
case "revolving door":
|
||||
const byHand = move.parameters.hand ? Hand.Right : Hand.Left;
|
||||
// TODO More parts? Or define an animation kind?
|
||||
const waitBeats = 2;
|
||||
const carryBeats = move.beats / 2;
|
||||
const returnBeats = move.beats - carryBeats - waitBeats;
|
||||
const returnBeats = move.beats - carryBeats;
|
||||
return handleCirclePairedMove(move.parameters.whom, ({ id, startPos }) => {
|
||||
const isCarried = findPairOpposite(move.parameters.who, id) === null;
|
||||
|
||||
|
@ -837,11 +836,6 @@ function moveAsLowLevelMoves({ move, nextMove, startingPos, numProgessions }: {
|
|||
if (isCarried) {
|
||||
const endWhich = startPos.which.swapDiagonal();
|
||||
return combine([
|
||||
prevEnd => ({
|
||||
beats: waitBeats,
|
||||
endPosition: prevEnd,
|
||||
movementPattern: { kind: SemanticAnimationKind.StandStill },
|
||||
}),
|
||||
{
|
||||
beats: carryBeats,
|
||||
endPosition: {
|
||||
|
@ -861,7 +855,7 @@ function moveAsLowLevelMoves({ move, nextMove, startingPos, numProgessions }: {
|
|||
beats: returnBeats,
|
||||
endPosition: prevEnd,
|
||||
movementPattern: { kind: SemanticAnimationKind.StandStill },
|
||||
}),
|
||||
})
|
||||
], startPos);
|
||||
} else {
|
||||
return combine([
|
||||
|
@ -1921,12 +1915,6 @@ function danceAsLowLevelMoves(moves: Move[], startingPos: Map<DancerIdentity, Se
|
|||
if (!lowLevelMoves[i].endPosition) throw "endPosition is undefined";
|
||||
lowLevelMoves[i].endPosition = lowLevelMoves[i + 1].startPosition;
|
||||
if (!lowLevelMoves[i].endPosition) throw "endPosition is undefined now";
|
||||
if (lowLevelMoves[i].movementPattern.kind === SemanticAnimationKind.StandStill) {
|
||||
lowLevelMoves[i].startPosition = lowLevelMoves[i].endPosition;
|
||||
if (i > 0) {
|
||||
lowLevelMoves[i - 1].endPosition = lowLevelMoves[i].startPosition;
|
||||
}
|
||||
}
|
||||
}
|
||||
// If progression isn't detected properly, do nothing.
|
||||
if (progressionInSets === 0) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user