Shuffler

Configuration

JSON
{
    "options": {
        "shuffleSpeed": 350,
        "numberOfShuffles": 15,
        "startAnimationDuration": 1500,
        "default_lang": "fr"
    },
    "texts": {
      "en": {
        "game_button_play": "Play now"
      },
      "fr": {
        "game_button_play": "Je joue"
      },
      "nl": {
        "game_button_play": "Speel nu"
      }
    },
    "images": {
      "image_top": GAME_URL + "/assets/shuffle/box_top.png",
      "image_bottom": GAME_URL + "/assets/shuffle/box_bottom.png",
      "image_close": GAME_URL + "/assets/shuffle/box_closed.png",
      "image_obj": GAME_URL + "/assets/shuffle/item.png",
      "rewards": {}
    }
}

Options

Key
Type
Explanation
Default
shuffleSpeed

Integer

Speed of the shuffle moves.

350

numberOfShuffles

Integer

Total number of shuffles before the customer can choose one of the boxes.

15

startAnimationDuration

Integer

Duration before the item falls into one of the boxes.

1500

default_lang

String

[PTF] Default language if unmatched language.

"fr"

game_button_play

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
image_top

175 x 175px

Top part of the open box.

image_bottom

175 x 175px

Bottom part of the open box.

image_close

175 x 175px

Closed box.

image_obj

100 x 100px

Item to be hidden in the box (must fit in the box).

Last updated