Scratch Card
Configuration
Options
Key
Type
Explanation
Default
scratch_percentageInteger
Percentage of the image to be scratched for the game to end.
60
cursor_sizeInteger
Size of the cursor.
1.25
overlay_timeoutInteger
Delay before the game ending.
60
background_colorText
Background color (behind the images).
"white"
allow_double_clickBoolean
Let people skip the scratching by double-clicking.
true
use_reward_imageBoolean
Use static or dynamic visuals (based on the reward).
false
default_langString
[PTF] Default language if unmatched language.
"fr"
Assets
Key
Size
Explanation
Default
win550 x 380px
Displayed after scratched in case of a win (and if no rewards images).
lose550 x 380px
Displayed after scratched in case of a lose (and if no rewards images).
brush64 x 64px
Shape of the scratching. Use the same image as cursor if none provided.
Last updated