Swapper
Configuration
JSON
{
"options": {
"score_type": "time",
"display_score": false,
"background_color": "white",
"border_width": 1.5,
"border_color": "black",
"hover_color": "black",
"found_color": "transparent",
"header_text_color": "white",
"header_background_color": "black",
"horizontal_pieces": 3,
"vertical_pieces": 2,
"use_reward_image": false
},
"texts": {
"en": {
"unit": "s"
},
"fr": {
"unit": "s"
},
"nl": {
"unit": "s"
}
},
"images": {
"background": {
"en": "",
"fr": "",
"nl": ""
},
"win": {
"en": GAME_URL + "/win_en.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"
},
"rewards": {}
}
}Options
String
Score calculation can be based on time or moves.
"time"
Boolean
Displays the header with current score to the player (or not).
false
String
Background color of the game.
"white"
Int
Width of the border of each tile (0 = no border).
1.5
String
Color of the border of each tile (transparent = no border visible).
"black"
String
Color overlay of a hovered tile (has a 50% opacity).
"black"
String
Color overlay of a tile that is correctly positioned (has a 50% opacity - hover having priority on this).
"transparent"
String
Color and background color of the header (if displayed).
"white" / "black"
Int
Number of tiles (3*2 = 6 tiles).
3 / 2
Boolean
Chooses between using a reveal image per reward, or the default win one.
false
String
Text displayed after the score (could be "moves" depending on the score_type).
"s"
Assets
550 x 380
Background visual.
/
Last updated