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

Key
Type
Explanation
Default
idle_spin

Boolean

Make the wheel spin before click.

true

play_poke

Boolean

[Wheelio] Play the poke or not.

true

TOTAL_SPIN_TIME

Integer

Time for which the wheel will keep spinning before stopping (in seconds).

5

use_reward_image

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

nb_slices

Integer

Indicate the number of quarters in the wheel (invisible for the customer but needed for calculations).

5

index_image_win_no_reward

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

index_image_lose_no_reward

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

index_image_lose_reward

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

default_lang

String

[PTF] Default language if unmatched language.

"fr"

btnPlay

Text

Text for the button that is displayed at the start of the game.

"Play now" / "Je joue" / "Speel nu"

Assets

Key
Size
Explanation
Default
pin

120 x 120px

Let the customer know on which quarter the wheel stopped.

wheel_no_reward

550 x 550px

Visual of the wheel used if use_reward_image is set to false.

wheel_rewards

550 x 550px

Visual of the wheel used if use_reward_image is set to true.

Last updated