fix: adjust Bejeweled game piece shapes for yellow diamond and purple triangle

- Yellow diamond: reduce vertex distance from 1.06 to 0.92 for a more compact shape
- Purple triangle: replace regular polygon with custom asymmetric coordinates
  (1.15, 0.85) for improved visual distinction
This commit is contained in:
Brian Fertig 2026-06-12 16:49:56 -06:00
parent 27a137b822
commit 13b5ec6fdf
1 changed files with 2 additions and 2 deletions

View File

@ -55,9 +55,9 @@ function unitShape(color) {
switch (color) {
case 'red': return poly(4, 45);
case 'orange': return poly(5, -90);
case 'yellow': return [{ x: 0, y: -1.06 }, { x: 0.72, y: 0 }, { x: 0, y: 1.06 }, { x: -0.72, y: 0 }];
case 'yellow': return [{ x: 0, y: -0.92 }, { x: 0.92, y: 0 }, { x: 0, y: 0.92 }, { x: -0.92, y: 0 }];
case 'green': return poly(6, 0);
case 'purple': return poly(3, -90);
case 'purple': return [{ x: 0, y: -1.15 }, { x: 1.0, y: 0.85 }, { x: -1.0, y: 0.85 }];
case 'white': return poly(8, 22.5);
default: return null; // blue → circle
}