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

Integer

Speed of the shuffle moves.

350

Integer

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

15

Integer

Duration before the item falls into one of the boxes.

1500

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

Key
Size
Explanation
Default

175 x 175px

Top part of the open box.

175 x 175px

Bottom part of the open box.

175 x 175px

Closed box.

100 x 100px

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

Last updated