Scratch Card
Configuration
JSON
{
"options": {
"scratch_percentage": 60,
"cursor_size": 1.25,
"overlay_timeout": 60,
"background_color": "white",
"allow_double_click": true,
"display_progress": false,
"use_reward_image": false
},
"texts": {
"en": {},
"fr": {},
"nl": {}
},
"images": {
"win": {
"en": GAME_URL + "/win_fr.png",
"fr": GAME_URL + "/win_fr.png",
"nl": GAME_URL + "/win_nl.png"
},
"lose": {
"en": GAME_URL + "/lose_en.png",
"fr": GAME_URL + "/lose_fr.png",
"nl": GAME_URL + "/lose_nl.png"
},
"overlay": {
"en": GAME_URL + "/overlay_en.png",
"fr": GAME_URL + "/overlay_fr.png",
"nl": GAME_URL + "/overlay_nl.png"
},
"cursor": GAME_URL + "/cursor.png",
"brush": GAME_URL + "/cursor.png",
"rewards": {}
}
}Options
Key
Type
Explanation
Default
Integer
Percentage of the image to be scratched for the game to end.
60
Integer
Size of the cursor.
1.25
Integer
Delay before the game ending.
60
Text
Background color (behind the images).
"white"
Boolean
Let people skip the scratching by double-clicking.
true
Boolean
Adds a progress bar at the bottom of the scratch zone.
false
Boolean
Use static or dynamic visuals (based on the reward).
false
Assets
Key
Size
Explanation
Default
Last updated