🍀
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

Dino Run

Last updated 8 months ago

Demo:

  1. Configuration

  2. Options

  3. Assets

Configuration

JSON
{
  "options": {
    "speed": 180,
    "acceleration": 0.01,
    "jump": 25,
    "gravity": 130,
    "ground": 85,
    "sky": 10,
    "clouds": 3,
    "obstacles": 2,
    "obstaclesSprites": 6,
    "obstaclesMaxSprites": 3,
    "obstaclesMinDistance": 40,
    "trexSprites": 6,
    "hitboxSize": 65,
    "default_lang": "fr",
    "reset_button": false
  },
  "texts": {
    "en": {
      "start": "Play now",
      "unit": "m"
    },
    "fr": {
      "start": "Je joue",
      "unit": "m"
    },
    "nl": {
      "start": "Speel nu",
      "unit": "m"
    }
  },
  "sounds": {},
  "images": {
    "obstacles": [
      GAME_URL + "/assets/dino-run/obstacle-large.png",
      GAME_URL + "/assets/dino-run/obstacle-small.png"
    ],
    "clouds": [
      GAME_URL + "/assets/dino-run/cloud.png"
    ],
    "horizon": GAME_URL + "/assets/dino-run/horizon.png",
    "trex": GAME_URL + "/assets/dino-run/trex.png",
    "rewards": {}
  }
}

Options

Key
Type
Explanation
Default

Int

Base speed.

180

Float

Acceleration.

0.01

Int

Jump force (from ground level, same unit).

25 (%)

Int

Gravity strength.

130

Int

Ground level (from the top of the game).

85 (%)

Int

Sky level (from the top of the game).

10 (%)

Int

Number of clouds.

3

Int

Number of obstacles (warning: if 0 the game becomes endless).

2

Int

Number of sprites on obstacles (must be the same for every visual!).

6

Int

Maximum width of an obstacle (min should be 1, or endless).

3

Int

Minimal distance between two obstacles (must be spread enough to allow a jump between two obstacles).

40 (%)

Int

Number of sprite for the runner (should have multiple, see visual specs!).

6

Int

Percentage of the visual to be used for hitbox calculation (100% = whole image, 0% = no hitbox, endless game).

65 (%)

String

[PTF] Default language if unmatched language.

"fr"

Boolean

[PTF] Set to true to cancel button's style.

false

String

Start button's text.

"Play now" / "Je joue" / "Speel nu"

String

Game unit (displayed with the score).

"m"

Assets

Key
Size
Explanation
Default

150 (6*25) x 50px

Visual(s) used for the obstacles, can be displayed partially.

50 x 15px

Visual(s) used for the clouds.

1200 x 12px

Visual used for the horizon line.

264 (6*44) x 50 px

Visual used for the runner. Should have multiple sprites (idle state, jumping up, jumping down).

đŸ•šī¸
speed
acceleration
jump
gravity
ground
sky
clouds
obstacles
obstaclesSprites
obstaclesMaxSprites
obstaclesMinDistance
trexSprites
hitboxSize
default_lang
reset_button
text > start
text > unit
obstacles
clouds
horizon
trex
https://campaigns.lucky-cycle.com/game-demo/jeu/dino-run
/assets/dino-run/obstacle-large.png
assets/dino-run/cloud.png
/assets/dino-run/horizon.png
/assets/dino-run/trex.png