Jaume Garriga Maestre b9404dd5b2 feat: add Level 8 Trencaclosques (drag-and-drop puzzle)
- Blind base map (grey slots for all comarques)
- Shuffled tray at the bottom with each comarca's shape + name
- Drag-and-drop with pointer events (works on touch + mouse)
- Hit test: SVG isPointInFill (precise) + 65px center fallback for small comarques
- Correct placement: comarca snaps to map with color + label
- Wrong drop: piece shakes and returns to tray (counts errors)
- Score = total pieces - errors; stars via showResult(8)
- Respects active group filter (same piece count as other map levels)
2026-05-13 22:29:45 +02:00
Description
App educativa per aprendre les comarques de Catalunya
553 KiB
Languages
HTML 86.6%
JavaScript 11.8%
Shell 1.2%
Dockerfile 0.4%