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

Boolean

[DEV] Display the hitboxes.

false

Integer

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

264

Integer

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

202

Integer

Maximum speed of the reel.

100

Integer

Number of spins before the machine stops on a tile.

7

Float

Acceleration speed.

1.5

Boolean

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

false

Integer

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

0

Integer

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

1

String

[PTF] Default language if unmatched language.

"fr"

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

92 x 120px

Cursor's base.

49 x 24px

Cursor's needle.

468 x 380px

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

45 x 380px

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

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