From 13b5ec6fdfd0c2a376d2dea214ff54d8318048e5 Mon Sep 17 00:00:00 2001 From: Brian Fertig Date: Fri, 12 Jun 2026 16:49:56 -0600 Subject: [PATCH] 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 --- public/src/games/bejeweled/BejeweledGame.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/games/bejeweled/BejeweledGame.js b/public/src/games/bejeweled/BejeweledGame.js index 9f676f6..1bf50e4 100644 --- a/public/src/games/bejeweled/BejeweledGame.js +++ b/public/src/games/bejeweled/BejeweledGame.js @@ -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 }