Slot Machine

Configuration

JSON
{
  "options": {
    "speed": 0.08,
    "use_reward_image": false,
    "index_reward_image": 0,
    "border_width_offset_1": 0,
    "border_width_offset_2": 0,
    "border_width_offset_3": 0,
    "reel2_start_time": 1000,
    "reel3_start_time": 2000,
    "overlay_width": 550,
    "overlay_height": 380,
    "handle_height": 380,
    "default_lang": "fr"
  },
  "texts": {
    "en": {
      "play_button": "Play now"
    },
    "fr": {
      "play_button": "Je joue"
    },
    "nl": {
      "play_button": "Speel nu"
    }
  },
  "images": {
    "overlay": GAME_URL + "/assets/slot-machine/overlay.png",
    "handle": {
      "ball": GAME_URL + "/assets/slot-machine/handle_ball.png",
      "handle": GAME_URL + "/assets/slot-machine/handle_handle.png",
      "base": GAME_URL + "/assets/slot-machine/handle_base.png"
    },
    "items": [
      GAME_URL + "/assets/slot-machine/item-1.jpg",
      GAME_URL + "/assets/slot-machine/item-2.jpg",
      GAME_URL + "/assets/slot-machine/item-3.jpg",
      GAME_URL + "/assets/slot-machine/item-4.jpg",
      GAME_URL + "/assets/slot-machine/item-5.jpg",
      GAME_URL + "/assets/slot-machine/item-6.jpg",
      GAME_URL + "/assets/slot-machine/item-7.jpg",
      GAME_URL + "/assets/slot-machine/item-8.jpg",
      GAME_URL + "/assets/slot-machine/item-9.jpg"
    ],
    "rewards": {}
  }
}

Options

Key
Type
Explanation
Default
speed

Integer

Rotation speed.

0.08

border_width_offset_1 / _2 / _3

Integer

Adjust to match overlay.

0 / 0 / 0

reel2_start_time

Integer

Delay for the second row.

1000

reel3_start_time

Integer

Delay for the third row.

2000

overlay_width / _height

Integer

Size of the overlay.

550 / 380

handle_height

Integer

Height of the handle (must be smaller or equal to overlay_height).

380

use_reward_image

Boolean

Use reward image in machine (must specify an image for each reward).

true

index_image_no_reward

Integer

If use_reward_image is false, specify which image is used in case of win (must be between 0 and 8).

0

default_lang

String

[PTF] Default language if unmatched language.

"fr"

play_button

String (one per language)

Text for the button that is displayed on small screens (instead of the handle).

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

Assets

Key
Size
Explanation
Default
overlay

550 x 380px

Image used on top of the game. Must be transparent or items will be hidden.

ball

120 x 120px

Component of the handle.

handle

35 x 400px

Component of the handle.

base

110 x 200px

Component of the handle.

items

150 x 150px (x9)

Item displayed in the game. Must have 9 different items for the game to work.

Last updated