> For the complete documentation index, see [llms.txt](https://doc.lucky-cycle.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.lucky-cycle.com/games/index/vintage-wheel.md).

# Vintage Wheel

{% hint style="warning" %}
Demo: <https://campaigns.lucky-cycle.com/utils/games?game=vintage-wheel>
{% endhint %}

1. [#configuration](#configuration "mention")
2. [#options](#options "mention")
3. [#assets](#assets "mention")

### Configuration

<details>

<summary>JSON</summary>

```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
  },
  "texts": {
    "en": {
      "play_button": "Play now"
    },
    "fr": {
      "play_button": "Je joue"
    },
    "nl": {
      "play_button": "Speel nu"
    }
  },
  "images": {
    "base": GAME_URL + "/base.png",
    "needle": GAME_URL + "/needle.png",
    "overlay": GAME_URL + "/overlay.png",
    "side_0": GAME_URL + "/side-0.png",
    "side_1": GAME_URL + "/side-1.png",
    "items": [
      GAME_URL + "/item-1.png",
      GAME_URL + "/item-2.png",
      GAME_URL + "/item-3.png",
      GAME_URL + "/item-4.png"
    ],
    "rewards": {}
  }
}
```

</details>

### Options

<table><thead><tr><th>Key</th><th>Type</th><th>Explanation</th><th>Default</th></tr></thead><tbody><tr><td><pre><code>visible_hitbox
</code></pre></td><td>Boolean</td><td><mark style="color:purple;">[DEV]</mark> Display the hitboxes.</td><td>false</td></tr><tr><td><pre><code>tile_width
</code></pre></td><td>Integer</td><td>Width of a tile (images should all have the same size).</td><td>264</td></tr><tr><td><pre><code>tile_height
</code></pre></td><td>Integer</td><td>Height of a tile (images should all have the same size).</td><td>202</td></tr><tr><td><pre><code>max_speed
</code></pre></td><td>Integer</td><td>Maximum speed of the reel.</td><td>100</td></tr><tr><td><pre><code>nb_spin
</code></pre></td><td>Integer</td><td>Number of spins before the machine stops on a tile. </td><td>7</td></tr><tr><td><pre><code>acceleration_percent
</code></pre></td><td>Float</td><td>Acceleration speed.</td><td>1.5</td></tr><tr><td><pre><code>use_reward_image
</code></pre></td><td>Boolean</td><td>Adds the reward tile to the list <mark style="color:orange;">(only the <strong>won</strong> reward!!)</mark>.</td><td>false</td></tr><tr><td><pre><code>index_reward_image
</code></pre></td><td>Integer</td><td>Index of the winning tile (will stop on it if <mark style="color:blue;">won</mark>).</td><td>0</td></tr><tr><td><pre><code>index_lose_image
</code></pre></td><td>Integer</td><td>Index of the losing tile (will stop on it if <mark style="color:blue;">lost</mark>).</td><td>1</td></tr><tr><td><pre><code>play_button
</code></pre></td><td>String</td><td>Text for the button that is displayed at the start of the game.</td><td>"Play now" / "Je joue" / "Speel nu"</td></tr></tbody></table>

### Assets

<table><thead><tr><th>Key</th><th>Size</th><th>Explanation</th><th>Default</th></tr></thead><tbody><tr><td><pre><code>base
</code></pre></td><td>92 x 120px</td><td>Cursor's base.</td><td><a href="https://statics.lucky-cycle.com/files/_games/vintage-wheel/base.png">/base.png</a></td></tr><tr><td><pre><code>needle
</code></pre></td><td>49 x 24px</td><td>Cursor's needle.</td><td><a href="https://statics.lucky-cycle.com/files/_games/vintage-wheel/needle.png">/needle.png</a></td></tr><tr><td><pre><code>overlay
</code></pre></td><td>468 x 380px</td><td>Overlay (of the reel, <strong>will be deformed!</strong>).</td><td><a href="https://statics.lucky-cycle.com/files/_games/vintage-wheel/overlay.png">/overlay.png</a></td></tr><tr><td><pre><code>side_0 / _1
</code></pre></td><td>45 x 380px</td><td>Sides of the machine <em><mark style="color:yellow;">(both images will be displayed on one side, switching every second, and mirrored on the other side)</mark></em>.</td><td><a href="https://statics.lucky-cycle.com/files/_games/vintage-wheel/side-0.png">/side-0.png</a> / <a href="https://statics.lucky-cycle.com/files/_games/vintage-wheel/side-1.png">/side-1.png</a></td></tr><tr><td><pre><code>items
</code></pre></td><td>264 x 202px <em>(each)</em></td><td>Items that will be displayed in the reel. <em>If less than 10 items in the array, some will be duplicated.</em></td><td><a href="https://statics.lucky-cycle.com/files/_games/vintage-wheel/item-1.png">/item-1.png</a></td></tr></tbody></table>
