Spin the Wheel games have their roots in carnival games, where physical wheels were spun to determine prizes or outcomes. The challenge in developing a digital version is to recreate the excitement and randomness of the physical wheel in a virtual environment. To this end, Gametize allows for customization of the wheel's probabilities, and outcomes. This enables game creators to tailor the experience to their specific needs, such as creating games with different prize distributions.
Disclaimer: the segment size does not necessarily indicate the odds of landing on each reward (even if we code it such that it does) and the points earned are subject to other terms and conditions.
Data for front-end
- Challenge ID - long
Challenge title - String
Challenge description - String
Image (to render as background) - String
List of options: JSON
Option ID - long
Option text - String
Points to award - int
Sample JSON for options:
"name": "Outcome 1",
"name": "Outcome 2",
"name": "Outcome 3",
"name": "Outcome 4",
Using the above JSON example, we have 4 wedges in the wheel. These wedges are rendered with equal sizes.
When the user clicks on “Spin Now!”, the wheel will start playing a spinning animation and at the same time, an API call is made to generate a random result for the current user for this challenge. (Input parameters: session_key and challenge_id.)
https://[APP_DOMAIN]/endminigame?id=[CHALLENGE ID]&session_key=[SESSION KEY]
You may assume that the JSON result of the above API call will be returned like this:
"optionName": "Outcome 1",
After 5 seconds, the spinning stops and the result of the spin is displayed.
The article's technical specifications and details are subject to potential changes based on our discretion. It is important to note that the information presented in the article might have become outdated or lost its relevance in the present context.
If you are interested to learn more about this, please drop an email to email@example.com with your queries regarding the article!
Please sign in to leave a comment.