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
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!
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!