🍀
Lucky Cycle
GamesCampaigns (FR)
  • đŸ•šī¸Games
    • Games
      • Explosion
      • Black-Jack
      • Brelan
      • Candy Crush
      • Catch'Em All!
      • Dino Run
      • Endless Runner
      • Flip Cards
      • Grabber
      • Hidden Object
      • Memory
      • Millionaire
      • Paper Toss
      • Penalty
      • Personality
      • Pinata
      • Scratch Card
      • Scratch Nine
      • Shooter
      • Short
      • Shuffler
      • Slicer
      • Slot Machine
      • Snake
      • Tinder
      • Vintage Wheel
      • Wheel
  • 🍄Campaigns (FR)
    • Campagnes
      • Template Standard
      • Template Wheel
Powered by GitBook
  1. Games
  2. Games

Endless Runner

Last updated 11 months ago

Demo:

  1. Configuration

  2. Options

  3. Assets

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).

550 x 700px

Background of the stage.

90 (* nb of items) x 90px

Sprite of the obstacles.

120 (* nb of items) x 120px

Sprite of the side visuals.

đŸ•šī¸
visible_hitbox
background > current_stage
background > speed
background > cap_speed
background > acceleration
background > change_stage_after_x_screens
runner
stages
default_lang
unit
tutorial
runner > image
stages > image
stages > obstacles > image
stages > sides > image
https://campaigns.lucky-cycle.com/game-demo/jeu/endless
/assets/endless/tutorial-en.gif
/assets/endless/runner.png
/assets/endless/background-world2.jpg
/assets/endless/obstacles-world2.png
/assets/endless/sides-world2.png