Shooter

Configuration

JSON
{
  "options": {
    "balloons_number": 5,
    "number_of_try": 3,
    "image_size": 20,

    "sound": false,
    "sound_explosion_balloon": "",
    "sound_win": "",
    "sound_lose": "",

    "balloon_speed_min": 10,
    "balloon_speed_max": 20,
    "default_lang": "fr"

  },
  "texts": {
    "en": {},
    "fr": {},
    "nl": {}
  },
  "images": {
    "balloons": [
      GAME_URL + "/assets/_games/shooter/item-1.png"
    ],
    "image_balloon_win": GAME_URL + "/assets/_games/shooter/win.png",
    "image_balloon_lose": GAME_URL + "/assets/_games/shooter/lose.png",
    "image_cursor": GAME_URL + "/assets/_games/shooter/cursor.png",
    "background_image": GAME_URL + "/assets/shooter/background.png"
  }
}

Options

Key
Type
Explanation
Default
balloons_number

Integer

Number of items displayed.

5

number_of_try

Integer

Number of items to click on.

3

image_size

Integer

Size of the items (based on the x size of the game, in %).

20

sound

Boolean

[DEPRECATED] Tells the game to use sounds or not.

false

sound_explosion_balloon

Text

[DEPRECATED] Sound when you clic on an item.

""

sound_win

Text

[DEPRECATED] Sound in case of a win.

""

sound_lose

Text

[DEPRECATED] Sound in case of a lose.

""

balloon_speed_min

Integer

Items min speed.

10

balloon_speed_max

Integer

Items max speed.

20

default_lang

String

[PTF] Default language if unmatched language.

"fr"

Assets

Key
Size
Explanation
Default
balloons

150 x 150px (each)

Items to be displayed in the game (based on the balloons_number option).

image_balloon_win

150 x 150px

Image to be displayed once an item has been clicked on in case of a win.

image_balloon_lose

150 x 150px

Image to be displayed once an item has been clicked on in case of a lose.

image_cursor

64 x 64px

Replace the default cursor while playing.

background_image

550 x 380px

Image to be displayed in the back of the game.

Last updated