Snake
Configuration
JSON
{
"options": {
"visible_hitbox": false,
"header_background_color": "black",
"header_text_color": "white",
"number_case": 8,
"spawn": {
"x": 4,
"y": 7
},
"case_per_second": 1.25,
"max_case_per_second": 5,
"acceleration_percent": 10,
"direction": {
"url": GAME_URL + "/assets/snake/arrow.png"
},
"snake": {
"direction": "N",
"url": GAME_URL + "/assets/snake/snake.png"
},
"apple": {
"url": GAME_URL + "/assets/snake/apple.png"
},
"background": {
"url": GAME_URL + "/assets/snake/background.png"
},
"tuto": {
"mobile": GAME_URL + "/assets/snake/tutorial_mobile.gif",
"desktop": GAME_URL + "/assets/snake/tutorial_desktop.gif"
},
"default_lang": "fr"
},
"texts": {
"en": {
"score": "Score",
"unit": "Apple(s)"
},
"fr": {
"score": "Score ",
"unit": "Pomme(s)"
},
"nl": {
"score": "Score",
"unit": "Appel(s)"
}
},
"images": {
"rewards": {}
},
"sounds": {}
}Options
Key
Type
Explanation
Default
Boolean
[DEV] Display the hitboxes.
false
String
Colour / background of the header.
"black" / "white"
Integer
Number of cells in a row / column (total cells will be number_casesยฒ as the game is always a square).
8
Integer
Indexes of the start cell.
4 / 7
Integer
Base speed.
1.25
Integer
Max speed.
5
Integer
Acceleration (between 0 and 100).
10
String
Starting direction (could be N, S, E, W).
"N"
String
[PTF] Default language if unmatched language.
"fr"
String
Text in the header.
"Score"
String
Text in the header.
"Apple(s)"
Assets
Key
Size
Explanation
Default
500 x 500px
Tutorial visual (can be animated, or not).
Last updated