# Shooter

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

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

### Configuration

<details>

<summary>JSON</summary>

```json
{
  "options": {
    "balloons_number": 5,
    "number_of_try": 3,
    "image_size": 20,
    "balloon_speed_min": 10,
    "balloon_speed_max": 20
  },
  "texts": {
    "en": {},
    "fr": {},
    "nl": {}
  },
  "images": {
    "balloons": [
      GAME_URL + "/item-1.png"
    ],
    "image_balloon_win": GAME_URL + "/win.png",
    "image_balloon_lose": GAME_URL + "/lose.png",
    "image_cursor": GAME_URL + "/cursor.png",
    "background_image": GAME_URL + "/background.png"
  }
}
```

</details>

### Options

<table><thead><tr><th>Key</th><th>Type</th><th>Explanation</th><th>Default</th></tr></thead><tbody><tr><td><pre><code>balloons_number
</code></pre></td><td>Integer</td><td>Number of items displayed.</td><td>5</td></tr><tr><td><pre><code>number_of_try
</code></pre></td><td>Integer</td><td>Number of items to click on.</td><td>3</td></tr><tr><td><pre><code>image_size
</code></pre></td><td>Integer</td><td>Size of the items (based on the x size of the game, in %).</td><td>20</td></tr><tr><td><pre><code>balloon_speed_min
</code></pre></td><td>Integer</td><td>Items min speed.</td><td>10</td></tr><tr><td><pre><code>balloon_speed_max
</code></pre></td><td>Integer</td><td>Items max speed.</td><td>20</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>balloons
</code></pre></td><td>150 x 150px (each)</td><td>Items to be displayed in the game <mark style="color:orange;">(based on the </mark><em><mark style="color:orange;">balloons_number</mark></em><mark style="color:orange;"> option)</mark>.</td><td><a href="https://statics.lucky-cycle.com/files/_games/shooter/item-1.png">/item-1.png</a></td></tr><tr><td><pre><code>image_balloon_win
</code></pre></td><td>150 x 150px</td><td>Image to be displayed once an item has been clicked on in case of a <em>win</em>.</td><td><a href="https://statics.lucky-cycle.com/files/_games/shooter/win.png">/win.png</a></td></tr><tr><td><pre><code>image_balloon_lose
</code></pre></td><td>150 x 150px</td><td>Image to be displayed once an item has been clicked on in case of a <em>lose</em>.</td><td><a href="https://statics.lucky-cycle.com/files/_games/shooter/lose.png">/lose.png</a></td></tr><tr><td><pre><code>image_cursor
</code></pre></td><td><mark style="color:red;">64 x 64px</mark></td><td>Replace the default cursor while playing.</td><td><a href="https://statics.lucky-cycle.com/files/_games/shooter/cursor.png">/cursor.png</a></td></tr><tr><td><pre><code>background_image
</code></pre></td><td>550 x 380px</td><td>Image to be displayed in the back of the game.</td><td><a href="https://statics.lucky-cycle.com/files/_games/shooter/background.png">/background.png</a></td></tr></tbody></table>
