This Phaser JS script demonstartes a solution to show roulette that rotates and stops at a random position. Needle ticks with animation and sound as the roulette spins.
The script itself could be rewritten into a really simple code and should be able to be integrate into any game at ease. You could use it for a simple game, a small lottery in your game, board games etc.
- Make a directory in your web server and copy the content into it.
- Open http:://yourserver/the_directory_of_your_choice/index.html in your browser
- Note: You can still try the demo by simply double clicking index.html in your computer's desktop. But you will not hear any sound because of CORS issue (please see here for more info).
Games made with a roulette system based on this demo script can be found at:
MIT