Wheel
Configuration
JSON
{
"options": {
"idle_spin": true,
"play_poke": true,
"TOTAL_SPIN_TIME": 5,
"use_reward_image": false,
"nb_slices": 5,
"index_image_win_no_reward": 0,
"index_image_lose_no_reward": 2,
"index_image_lose_reward": 4,
"rewards": {},
"default_lang": "fr"
},
"texts": {
"en": {
"btnPlay": "Play now"
},
"fr": {
"btnPlay": "Je joue"
},
"nl": {
"btnPlay": "Speel nu"
}
},
"images": {
"en" : {
"pin": GAME_URL + "/assets/wheel/pin.png",
"wheel_no_reward": GAME_URL + "/assets/wheel/wheel.png",
"wheel_rewards": GAME_URL + "/assets/wheel/wheel.png"
},
"fr" : {
"pin": GAME_URL + "/assets/wheel/pin.png",
"wheel_no_reward": GAME_URL + "/assets/wheel/wheel.png",
"wheel_rewards": GAME_URL + "/assets/wheel/wheel.png"
},
"nl" : {
"pin": GAME_URL + "/assets/wheel/pin.png",
"wheel_no_reward": GAME_URL + "/assets/wheel/wheel.png",
"wheel_rewards": GAME_URL + "/assets/wheel/wheel.png"
}
}
}Options
Boolean
Make the wheel spin before click.
true
Boolean
[Wheelio] Play the poke or not.
true
Integer
Time for which the wheel will keep spinning before stopping (in seconds).
5
Boolean
Indicate if the wheel should have a specific number of slices (see nb_slices_no_reward below) or if rewards should determine it.
false
Integer
Indicate the number of quarters in the wheel (invisible for the customer but needed for calculations).
5
Integer
Select on which slice of the wheel it will stop in case of win (and if use_reward_image is set to false).
0
Integer
Select on which slice of the wheel it will stop in case of lose (and if use_reward_image is set to false).
2
Integer
Select on which slice of the wheel it will stop in case of lose (and if use_reward_image is set to true).
4
String
[PTF] Default language if unmatched language.
"fr"
Text
Text for the button that is displayed at the start of the game.
"Play now" / "Je joue" / "Speel nu"
Assets
Last updated