🍀
Lucky Cycle
GamesCampaigns (FR)
  • đŸ•šī¸Games
    • Games
      • Explosion
      • Black-Jack
      • Brelan
      • Candy Crush
      • Catch'Em All!
      • Dino Run
      • Endless Runner
      • Flip Cards
      • Grabber
      • Hidden Object
      • Memory
      • Millionaire
      • Paper Toss
      • Penalty
      • Personality
      • Pinata
      • Scratch Card
      • Scratch Nine
      • Shooter
      • Short
      • Shuffler
      • Slicer
      • Slot Machine
      • Snake
      • Tinder
      • Vintage Wheel
      • Wheel
  • 🍄Campaigns (FR)
    • Campagnes
      • Template Standard
      • Template Wheel
Powered by GitBook
  1. Games
  2. Games

Scratch Card

Last updated 8 months ago

Demo:

  1. Configuration

  2. Options

  3. Assets

Configuration

JSON
{
    "options": {
        "scratch_percentage": 60,
        "cursor_size": 1.25,
        "overlay_timeout": 60,
        "background_color": "white",
        "allow_double_click": true,
        "use_reward_image": false,
        "default_lang": "fr"
    },
    "texts": {
      "en": {},
      "fr": {},
      "nl": {}
    },
    "sounds": {},
    "images": {
      "win": {
        "en": GAME_URL + "/assets/scratch-card/win_fr.png",
        "fr": GAME_URL + "/assets/scratch-card/win_fr.png",
        "nl": GAME_URL + "/assets/scratch-card/win_nl.png"
      },
      "lose": {
        "en": GAME_URL + "/assets/scratch-card/lose_en.png",
        "fr": GAME_URL + "/assets/scratch-card/lose_fr.png",
        "nl": GAME_URL + "/assets/scratch-card/lose_nl.png"
      },
      "overlay": {
        "en": GAME_URL + "/assets/scratch-card/overlay_en.png",
        "fr": GAME_URL + "/assets/scratch-card/overlay_fr.png",
        "nl": GAME_URL + "/assets/scratch-card/overlay_nl.png"
      },
      "cursor": GAME_URL + "/assets/scratch-card/cursor.png",
      "brush": GAME_URL + "/assets/scratch-card/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

Use static or dynamic visuals (based on the reward).

false

String

[PTF] Default language if unmatched language.

"fr"

Assets

Key
Size
Explanation
Default

550 x 380px

Displayed after scratched in case of a win (and if no rewards images).

550 x 380px

Displayed after scratched in case of a lose (and if no rewards images).

550 x 380px

Visual to be scratched.

64 x 64px

Replace the default cursor while scratching.

64 x 64px

Shape of the scratching. Use the same image as cursor if none provided.

đŸ•šī¸
scratch_percentage
cursor_size
overlay_timeout
background_color
allow_double_click
use_reward_image
default_lang
win
lose
overlay
cursor
brush
https://campaigns.lucky-cycle.com/game-demo/jeu/scratch-card
/assets/scratch-card/win_en.png
/assets/scratch-card/lose_en.png
/assets/scratch-card/overlay_en.png
/assets/scratch-card/cursor.png
/assets/scratch-card/cursor.png