[feat] add 3D dice #4

Merged
brad merged 6 commits from 3d-dice into main 2026-01-04 14:59:39 -08:00
Owner
No description provided.
Integrate sarahRosannaBusch/dice library to show 3D animated dice
when rolling in 5etools. The visualization hooks into the existing
dice roller - clicks on rollable dice trigger a full-screen overlay
with physics-based 3D dice animation before showing results.

Features:
- Lazy-loads dice library on first roll (~540KB total)
- Supports d4, d6, d8, d10, d12, d20, d100
- Skip animation with click, Space, or Escape
- Falls back gracefully if WebGL unavailable
- Dungeon Church themed overlay styling

New files:
- .patches/js/dice3d/ - Three.js, Cannon.js, and dice library
- .patches/js/dice3d-integration.js - 5etools integration script
- .patches/css/dice3d.css - Overlay styles

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
brad merged commit 036a0d64bb into main 2026-01-04 14:59:39 -08:00
brad referenced this pull request from a commit 2026-01-04 14:59:42 -08:00
brad deleted branch 3d-dice 2026-01-04 14:59:48 -08:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dungeonchurch/5etools-2014-custom!4
No description provided.