Endless Runner
Configuration
JSON
{
"options": {
"visible_hitbox": false,
"background": {
"current_stage": 0,
"speed": 5,
"cap_speed": 10,
"acceleration": 0.3,
"change_stage_after_x_screens": 13
},
"runner": {
"image": GAME_URL + "/assets/endless/runner.png",
"position_y": 380,
"position_x": [
113,
223,
338
],
"position_init": 1,
"width": 100,
"height": 120,
"sprites_count": 8,
"hitbox": {
"x": 40,
"y": 45,
"width": 20,
"height": 35
}
},
"stages": [
{
"image": GAME_URL + "/assets/endless/background-world2.jpg",
"obstacles": {
"position_x": [
115,
228,
345
],
"sprites_count": 6,
"width": 90,
"height": 90,
"image": GAME_URL + "/assets/endless/obstacles-world2.png"
},
"sides": {
"sprites_count": 10,
"width": 120,
"height": 120,
"image": GAME_URL + "/assets/endless/sides-world2.png"
}
},
{
"image": GAME_URL + "/assets/endless/background-world1.jpg",
"obstacles": {
"position_x": [
115,
228,
345
],
"sprites_count": 7,
"width": 90,
"height": 90,
"image": GAME_URL + "/assets/endless/obstacles-world1.png"
},
"sides": {
"sprites_count": 9,
"width": 120,
"height": 120,
"image": GAME_URL + "/assets/endless/sides-world1.png"
}
},
{
"image": GAME_URL + "/assets/endless/background-world3.jpg",
"obstacles": {
"position_x": [
115,
228,
345
],
"sprites_count": 6,
"width": 90,
"height": 90,
"image": GAME_URL + "/assets/endless/obstacles-world3.png"
},
"sides": {
"sprites_count": 10,
"width": 120,
"height": 120,
"image": GAME_URL + "/assets/endless/sides-world3.png"
}
}
],
"default_lang": "fr"
},
"texts": {
"en": {
"unit": "m"
},
"fr": {
"unit": "m"
},
"nl": {
"unit": "m"
}
},
"sounds": {},
"images": {
"tutorial": {
"en": GAME_URL + "/assets/endless/tutorial-en.gif",
"fr": GAME_URL + "/assets/endless/tutorial-fr.gif",
"nl": GAME_URL + "/assets/endless/tutorial-nl.gif"
},
"rewards": {}
}
}Options
Key
Type
Explanation
Default
Boolean
[DEV] Display the runner's hitbox.
false
Integer
Index of the starting "stage".
0
Integer
Base speed.
5
Integer
Max speed.
10
Float
Acceleration.
0.3
Integer
Number of stages' passes before switching to the next one (if more than one in the array).
13
Object
Visual + config of the player.
{ ... }
Objects
Visuals + config of the stages.
[ {...} ]
String
[PTF] Default language if unmatched language.
"fr"
String
Unit of the game (points, meters, etc.).
"m"
Assets
Key
Size
Explanation
Default
500 x 500px
Visual (can be animated) displayed for a few seconds at the start of the game.
120 (* nb of frames) x 120px
Visual of the runner (must be frames to be animated).
Last updated