Skip to content
Snippets Groups Projects
Commit bc13ad7d authored by Paolo.Brasolin's avatar Paolo.Brasolin
Browse files

feat: #fe clue placement avoids clues in flight and high piles

parent 7c7ea844
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,8 @@ class Clue extends Phaser.GameObjects.Sprite {
let intersect = true;
intersect &&= clueBounds.left - pad < x;
intersect &&= x < clueBounds.right + pad;
xs[i] += intersect;
const pileHeight = bounds.bottom - clueBounds.bottom;
xs[i] += (intersect ? 1 : 0) * pileHeight;
});
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment