Flip Cards

Configuration

JSON
{
  "options": {
    "columns": 2,
    "rows": 1,
    "number_of_try": 1,
    "background_color": "transparent",
    "use_reward_image": false,
    "default_lang": "fr"
  },
  "texts": {
    "en": {},
    "fr": {},
    "nl": {}
  },
  "sounds": {},
  "images": {
    "background_image": GAME_URL + "/assets/flip-card/background.png",
    "image_list": [
      GAME_URL + "/assets/flip-card/back-1.png"
    ],
    "win": GAME_URL + "/assets/flip-card/win.png",
    "lose": GAME_URL + "/assets/flip-card/lose.png",
    "rewards": {}
  }
}

Options

Key
Type
Explanation
Default
columns / rows

Integer

Grid (determines the number of items displayed, rows*columns).

2 / 1

number_of_try

Integer

Number of chances (clicks).

1

background_color

String

Background colour (visible if no image).

"transparent"

use_reward_image

Boolean

Use one image per reward, or default ones (win / lose).

false

default_lang

String

[PTF] Default language if unmatched language.

"fr"

Assets

Key
Size
Explanation
Default
background_image

550 x 380px

Background of the game.

image_list

120 x 200px

Visual(s) displayed before clicking.

win

120 x 200px

Visual if won (use_reward_image has to be set to false).

lose

120 x 200px

Visual if lost (use_reward_image has to be set to false).

Last updated