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
Integer
Size of an item (square), in pixels.
145
Boolean
Display the header with timer (increasing).
true
String
Colour / background of the header.
"black" / "white"
String
[PTF] Default language if unmatched language.
"fr"
String
Texts for the timer.
"Time" / "s" --> "Time: [time]s"
Assets
Key
Size
Explanation
Default
145 x 145px
Back visual of the card (common to all cards). Should match "size".
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