Phaser 3 3D Dice Class: Customizable

Bluehost Shared Hosting

Demo

https://www.youtube.com/watch?v=TuyYHOYIw7I

Phaser 3.11 3D Dice Class: Customizable

Ready for mobile: One can easily use the Dice class in any kind of mobile app development. Initiate the dice class like `new Dice(x,x,x,x,x)`. Create a random number while creating the Dice class and assign it. It will stop on that number.

Accepts a number to stop at: Each Dice accepts a number to stop at. One should handle the random number generation logic in server side. This dice should only work at front end to stop on that random number fed to it. Before payout, compare the number generated from front end with the number sent from server. That way we can restrict any kind of hack.

Multiple Die integration: One can include any number of Die in a game. Tested with 500 die which works perfect without a hick up.

The Dice class accepts a sprite image which has six faces of a dice. Sprite images can be generated in any fashion which goes with the theme of the game. Even transparent sprites can also be used.

For more free game source code, visit Home Page

0 average based on 1 ratings.

TechDyno

TechDyno

Visit Author's Portfolio

View Portfolio
Last Update 2021-03-11
Created 2018-07-23
Sales 14
Discussion Comments
Compatible Browsers IE9 IE10 IE11 Firefox Safari Opera Chrome Edge
Software Version HTML5
High Resolution No
Files Included JavaScript JS HTML
Video Preview Resolution