🍀
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

Penalty

Last updated 8 months ago

Demo:

  1. Configuration

  2. Options

  3. Assets

Configuration

JSON
{
  "options": {
    "visible_hitbox": false,
    "number_of_shoot": 5,
    "time_between_shoot": 1000,
    "background": {
      "url": GAME_URL + "/assets/penalty/background.png",
      "height": 600,
      "width": 686
    },
    "ball": {
      "url": GAME_URL + "/assets/penalty/ball.png",
      "height": 50,
      "width": 50,
      "speed": 12
    },
    "keeper": {
      "active": true,
      "url": GAME_URL + "/assets/penalty/keeper.png",
      "height": 126,
      "width": 103,
      "offsetY": 10,
      "speed": {
        "min": 5,
        "max": 15
      }
    },
    "goal": {
      "url": GAME_URL + "/assets/penalty/goal.png",
      "url_foreground": null,
      "height": 216,
      "width": 400,
      "offsetY": 25,
      "paddingX": 35,
      "floorLine": 100,
      "scoreLine": 65,
      "scoreLineOffsetY": 0
    },
    "board": {
      "url": GAME_URL + "/assets/penalty/board.png"
    },
    "default_lang": "fr"
  },
  "texts": {
    "en": {
      "shoot": "Shots: ",
      "score": "Goals: "
    },
    "fr": {
      "shoot": "Tirs : ",
      "score": "Buts : "
    },
    "nl": {
      "shoot": "Kicks: ",
      "score": "Goals: "
    }
  },
  "sounds": {},
  "images": {
    "rewards": {}
  }
}

Options

Key
Type
Explanation
Default

Boolean

[DEV] Display the hitboxes.

false

Integer

Number of times a player can "shoot" the ball.

5

Integer

Delay between each "shoot".

1000

Integer

Background's visual sizes.

600 / 686

Integer

Ball's visual sizes (to render).

50 / 50

Integer

Speed of the ball.

12

Boolean

[Do not edit] Set to false to disable the keeper.

true

Integer

Keeper's visual sizes (to render).

126 / 103

Integer

Vertical adjustment of the keeper.

10

Integer

Speed of the keeper (is random between min and max at each "shoot").

5 / 15

Integer

Goal's visual sizes (to render).

216 / 400

Integer

Vertical adjustment of the goal.

25

Integer

Horizontal padding for the goal. (the ball will bounce of those areas).

35

Integer

Ground level (if no goal).

100

Integer

Score level (if goal).

65

Integer

[Do not edit, used in PaperToss]

0

String

[PTF] Default language if unmatched language.

"fr"

String

Text displayed in the header.

"Shots: "

String

Text displayed in the header.

"Goals: "

Assets

Key
Size
Explanation
Default

~600 x 600px (adapt background sizes)

Background of the game.

50 x 50px

Visual of the ball.

~100 x 125px (adapt keeper sizes)

Visual of the keeper.

~400 x ...px (adapt goal sizes)

Visual of the goal.

/

[Do not edit, used in PaperToss]

/

~400 x 200px

Visual of the scoreboard.

đŸ•šī¸
visible_hitbox
number_of_shoot
time_between_shoot
background > height / width
ball > height / width
ball > speed
keeper > active
keeper > height / width
keeper > offsetY
keeper > speed > min / max
goal > height / width
goal > offsetY
goal > paddingX
goal > floorLine
goal > scoreLine
goal > scoreLineOffsetY
default_lang
shoot
score
background > url
ball > url
keeper > url
goal > url
goal > url_foreground
board > url
https://campaigns.lucky-cycle.com/game-demo/jeu/penalty
/assets/penalty/background.png
/assets/penalty/ball.png
/assets/penalty/keeper.png
/assets/penalty/goal.png
/assets/penalty/board.png