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
Integer
Rotation speed.
0.08
Integer
Adjust to match overlay.
0 / 0 / 0
Integer
Delay for the second row.
1000
Integer
Delay for the third row.
2000
Integer
Size of the overlay.
550 / 380
Integer
Height of the handle (must be smaller or equal to overlay_height).
380
Boolean
Use reward image in machine (must specify an image for each reward).
true
Integer
If use_reward_image is false, specify which image is used in case of win (must be between 0 and 8).
0
String
[PTF] Default language if unmatched language.
"fr"
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
550 x 380px
Image used on top of the game. Must be transparent or items will be hidden.
150 x 150px (x9)
Item displayed in the game. Must have 9 different items for the game to work.
Last updated