Vintage Wheel

Configuration

JSON
{
  "options": {
    "visible_hitbox": false,
    "tile_width": 264,
    "tile_height": 202,
    "max_speed": 100,
    "nb_spin": 7,
    "acceleration_percent": 1.5,
    "use_reward_image": false,
    "index_reward_image": 0,
    "index_lose_image": 1,
    "default_lang": "fr"
  },
  "texts": {
    "en": {
      "play_button": "Play now"
    },
    "fr": {
      "play_button": "Je joue"
    },
    "nl": {
      "play_button": "Speel nu"
    }
  },
  "images": {
    "base": GAME_URL + "/assets/vintage-wheel/base.png",
    "needle": GAME_URL + "/assets/vintage-wheel/needle.png",
    "overlay": GAME_URL + "/assets/vintage-wheel/overlay.png",
    "side_0": GAME_URL + "/assets/vintage-wheel/side-0.png",
    "side_1": GAME_URL + "/assets/vintage-wheel/side-1.png",
    "items": [
      GAME_URL + "/assets/vintage-wheel/item-1.png",
      GAME_URL + "/assets/vintage-wheel/item-2.png",
      GAME_URL + "/assets/vintage-wheel/item-3.png",
      GAME_URL + "/assets/vintage-wheel/item-4.png"
    ],
    "rewards": {}
  }
}

Options

Key
Type
Explanation
Default
visible_hitbox

Boolean

[DEV] Display the hitboxes.

false

tile_width

Integer

Width of a tile (images should all have the same size).

264

tile_height

Integer

Height of a tile (images should all have the same size).

202

max_speed

Integer

Maximum speed of the reel.

100

nb_spin

Integer

Number of spins before the machine stops on a tile.

7

acceleration_percent

Float

Acceleration speed.

1.5

use_reward_image

Boolean

Adds the reward tile to the list (only the won reward!!).

false

index_reward_image

Integer

Index of the winning tile (will stop on it if won).

0

index_lose_image

Integer

Index of the losing tile (will stop on it if lost).

1

default_lang

String

[PTF] Default language if unmatched language.

"fr"

play_button

String

Text for the button that is displayed at the start of the game.

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

Assets

Key
Size
Explanation
Default
base

92 x 120px

Cursor's base.

needle

49 x 24px

Cursor's needle.

overlay

468 x 380px

Overlay (of the reel, will be deformed!).

side_0 / _1

45 x 380px

Sides of the machine (both images will be displayed on one side, switching every second, and mirrored on the other side).

items

264 x 202px (each)

Items that will be displayed in the reel. If less than 10 items in the array, some will be duplicated.

Last updated