Memory
Configuration
JSON
{
"options": {
"size": 145,
"show_time": true,
"one_pair_mode": false,
"use_countdown": false,
"timer": 60,
"pairs": 6,
"background_color": "transparent",
"header_text_color": "white",
"header_background_color": "black"
},
"texts": {
"en": {
"time": "Time",
"unit": "s"
},
"fr": {
"time": "Temps ",
"unit": "s"
},
"nl": {
"time": "Tijd",
"unit": "s"
}
},
"images": {
"background": GAME_URL + "/background.png",
"image_list": [
GAME_URL + "/item-1.png",
GAME_URL + "/item-2.png",
GAME_URL + "/item-3.png",
GAME_URL + "/item-4.png",
GAME_URL + "/item-5.png",
GAME_URL + "/item-6.png"
]
}
}Options
Key
Type
Explanation
Default
Integer
Size of an item (square), in pixels.
150
Boolean
Display the header with timer (increasing).
true
Boolean
Stops the game at the first pair.
false
Boolean
Add a timer to the game.
false
Int
If use_countdown is set to true, gives the allowed time for the game.
60
Int
Number of pairs to be found (must match the number of image_list visuals).
6
String
Background colour (visible if no image).
"transparent"
String
Colour / background of the header.
"black" / "white"
String
Texts for the timer.
"Time" / "s" --> "Time: [time]s"
Assets
Key
Size
Explanation
Default
150 x 150px
Back visual of the card (common to all cards). Size should match "size" option.
150 x 150px (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