3d-dice / dice-box

3D Game Dice for any JavaScript App
https://fantasticdice.games/
MIT License
127 stars 28 forks source link

dice replay the same result #75

Closed OoWoodOne closed 1 year ago

OoWoodOne commented 1 year ago

I don't know if it is possible to achieve the replay function of the dice? Some originally random values can be fixed, so that the results of the cast are also fixed. Application scenarios such as multiplayer games, player 1's dice results can be reproduced in player 2.

frankieali commented 1 year ago

Try this version. It's a rough implementation but it works. https://github.com/3d-dice/dice-box-threejs. Demo here: https://codesandbox.io/s/dice-box-threejs-j79h35?file=/src/index.js

I'm currently rebuilding the original project from the ground up in order to implement predeterministic rolling features.

frankieali commented 1 year ago

Closing as duplicate of #47