Memory

Configuration

JSON
{
  "options": {
    "size": 145,
    "show_time": true,
    "header_text_color": "white",
    "header_background_color": "black",
    "default_lang": "fr"
  },
  "texts": {
    "en": {
      "time": "Time",
      "unit": "s"
    },
    "fr": {
      "time": "Temps ",
      "unit": "s"
    },
    "nl": {
      "time": "Tijd",
      "unit": "s"
    }
  },
  "images": {
    "background":  GAME_URL + "/assets/memory/background.png",
    "image_list": [
      GAME_URL + "/assets/memory/item-1.png",
      GAME_URL + "/assets/memory/item-2.png",
      GAME_URL + "/assets/memory/item-3.png",
      GAME_URL + "/assets/memory/item-4.png",
      GAME_URL + "/assets/memory/item-5.png",
      GAME_URL + "/assets/memory/item-6.png"
    ]
  }
}

Options

Key
Type
Explanation
Default
size

Integer

Size of an item (square), in pixels.

145

show_time

Boolean

Display the header with timer (increasing).

true

header_text_color / _background_color

String

Colour / background of the header.

"black" / "white"

default_lang

String

[PTF] Default language if unmatched language.

"fr"

time / unit

String

Texts for the timer.

"Time" / "s" --> "Time: [time]s"

Assets

Key
Size
Explanation
Default
background

145 x 145px

Back visual of the card (common to all cards). Should match "size".

image_list

145 x 145px (each)

Front visual of the cards to be matched (two cards per visual). Array should contains 6 images, but can go from 1.

Last updated