Page 1 of 1

Let the dice roll!!

Posted: 10 March 2017, 22:50
by Morgalad
I have created a rolling dice using only css that displays the right result.
the idea is to create the dice with a dojo.place and then read a notification from the server to display the result.

As an exercise I put all together in a little html so you can use...

Imagine this in games like can“t stop and yahtzee... YOU CAN SEE THE DICE ROLLING

Code: Select all


Edit: see the link on my next post to CodePen


with just this little code the result is really amazing... please save the code above as an html and try it...


All contributions are wellcome... so if you have some ideas to improve it.... just change it!

Re: Let the dice roll!!

Posted: 11 March 2017, 09:54
by docthib
Hey,
Thanks for sharing this, it sounds exciting !
do you have any project where we can see an example ? :)

Re: Let the dice roll!!

Posted: 11 March 2017, 10:50
by Morgalad
Hi,

For convenience I have created a CodePen so we can work on this together and test the result:

https://codepen.io/Morgalad/pen/BWRzKM