🍀
Lucky Cycle
GamesCampaigns (FR)
  • đŸ•šī¸Games
    • Games
      • Explosion
      • Black-Jack
      • Brelan
      • Candy Crush
      • Catch'Em All!
      • Dino Run
      • Endless Runner
      • Flip Cards
      • Grabber
      • Hidden Object
      • Memory
      • Millionaire
      • Paper Toss
      • Penalty
      • Personality
      • Pinata
      • Scratch Card
      • Scratch Nine
      • Shooter
      • Short
      • Shuffler
      • Slicer
      • Slot Machine
      • Snake
      • Tinder
      • Vintage Wheel
      • Wheel
  • 🍄Campaigns (FR)
    • Campagnes
      • Template Standard
      • Template Wheel
Powered by GitBook
  1. Games
  2. Games

Slot Machine

Last updated 1 year ago

Demo:

  1. Configuration

  2. Options

  3. Assets

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

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

Key
Size
Explanation
Default

550 x 380px

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

120 x 120px

Component of the handle.

35 x 400px

Component of the handle.

110 x 200px

Component of the handle.

150 x 150px (x9)

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

đŸ•šī¸
speed
border_width_offset_1 / _2 / _3
reel2_start_time
reel3_start_time
overlay_width / _height
handle_height
use_reward_image
index_image_no_reward
default_lang
play_button
overlay
ball
handle
base
items
https://campaigns.lucky-cycle.com/game-demo/jeu/slot-machine
/assets/slot-machine/overlay.png
/assets/slot-machine/handle_ball.png
/assets/slot-machine/handle_handle.png
/assets/slot-machine/handle_base.png
/assets/slot-machine/item-1.jpg