Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- targetPosition = bar3pos + targetBarIndex;
- safeDown = Math.max(barHeights[targetBarIndex] + currBlockHt, target1Ht);
- safeDown = Math.max(safeDown, target2Ht);
- safeDown = Math.max(safeDown, maxBarHt);
- if (currBlockHt == 2) {
- targetPosition = bar2pos;
- safeDown = Math.max(target2Ht + currBlockHt, target1Ht);
- } else if (currBlockHt == 1) {
- targetPosition = bar1pos;
- safeDown = target1Ht + currBlockHt;
- }
- while (arm2 > targetPosition)
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement