Short
Configuration
JSON
{
"options": {
"game": {
"width": 400,
"height": 400,
"use_reward_image": true,
"default_lang": "fr"
},
"images": {
"cover": {
"x": 0,
"y": 0,
"z": 0
}
},
"animations": {
"iddle": {
"x": 0,
"y": 0,
"z": 1,
"width": 400,
"height": 400,
"nbImages": 1,
"duration": 3000,
"loop": true
},
"win": {
"x": 0,
"y": 0,
"z": 0,
"width": 400,
"height": 400,
"nbImages": 48,
"duration": 2000,
"loop": false
},
"lose": {
"x": 0,
"y": 0,
"z": 0,
"width": 400,
"height": 400,
"nbImages": 48,
"duration": 2000,
"loop": false
}
}
},
"texts": {
"en": {},
"fr": {},
"nl": {}
},
"sounds": {},
"images": {
"sprite_iddle": GAME_URL + "/assets/short/iddle.png",
"sprite_win": GAME_URL + "/assets/short/win.png",
"sprite_lose": GAME_URL + "/assets/short/lose.png",
"sprite_cover": GAME_URL + "/assets/short/overlay.png",
"rewards": {}
}
}Options
Key
Type
Explanation
Default
Integer
Width of the canvas.
400
Integer
Height of the canvas.
400
Boolean
Tells the game to use the reward image, or a default one (both must be provided).
true
String
[PTF] Default language if unmatched language.
"fr"
Other options shouldn't be edited!
Assets
Key
Size
Explanation
Default
(400 * number of frames) x 400px
Image displayed once the game started, in case of a win and if use_reward_image is set to false (should have many frames).
(400 * number of frames) x 400px
Image displayed once the game started, in case of a lose (should have many frames).
Last updated