Snake
Configuration
Options
Key
Type
Explanation
Default
visible_hitboxBoolean
[DEV] Display the hitboxes.
false
header_background_color
header_text_colorString
Colour / background of the header.
"black" / "white"
number_caseInteger
Number of cells in a row / column (total cells will be number_cases² as the game is always a square).
8
spawn > x / yInteger
Indexes of the start cell.
4 / 7
case_per_secondInteger
Base speed.
1.25
max_case_per_secondInteger
Max speed.
5
acceleration_percentInteger
Acceleration (between 0 and 100).
10
snake > directionString
Starting direction (could be N, S, E, W).
"N"
default_langString
[PTF] Default language if unmatched language.
"fr"
scoreString
Text in the header.
"Score"
unitString
Text in the header.
"Apple(s)"
Assets
Key
Size
Explanation
Default
snake > url(100*sprite) x 100px
Visual of the snake (is a sprite of the snake parts!!).
tuto > mobile / desktop500 x 500px
Tutorial visual (can be animated, or not).
Last updated