Paper Toss

Configuration

JSON
{
  "options": {
    "visible_hitbox": false,
    "number_of_shoot": 5,
    "time_between_shoot": 1000,
    "background": {
      "url": GAME_URL + "/assets/penalty/paper-toss__background.png",
      "height": 600,
      "width": 900
    },
    "ball": {
      "url": GAME_URL + "/assets/penalty/paper-toss__paper.png",
      "height": 50,
      "width": 50,
      "speed": 9
    },
    "keeper": {
      "active": false,
      "url": "",
      "height": 1,
      "width": 1,
      "offsetY": 0,
      "speed": {
        "min": 1,
        "max": 1
      }
    },
    "goal": {
      "url": GAME_URL + "/assets/penalty/paper-toss__bin_back.png",
      "url_foreground": GAME_URL + "/assets/penalty/paper-toss__bin_front.png",
      "height": 145,
      "width": 113,
      "offsetY": 50,
      "paddingX": 10,
      "floorLine": 100,
      "scoreLine": 0,
      "scoreLineOffsetY": -75
    },
    "board": {
      "url": GAME_URL + "/assets/penalty/board.png"
    },
    "default_lang": "fr"
  },
  "texts": {
    "en": {
      "shoot": "Throws: ",
      "score": "Points: "
    },
    "fr": {
      "shoot": "Lancers : ",
      "score": "Points : "
    },
    "nl": {
      "shoot": "Gooien: ",
      "score": "Punten: "
    }
  },
  "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 / 900

Integer

Ball's visual sizes (to render).

50 / 50

Integer

Speed of the ball.

9

Boolean

[Do not edit] Set to true to enable the keeper (used in penalty).

false

Integer

Keeper's visual sizes (to render) (used in penalty).

1 / 1

Integer

Vertical adjustment of the keeper (used in penalty).

0

Integer

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

1 / 1

Integer

Goal's visual sizes (to render).

145 / 113

Integer

Vertical adjustment of the goal.

50

Integer

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

10

Integer

Ground level (if no goal).

100

Integer

Score level (if goal).

0

Integer

Height to reach to score a point.

-75

String

[PTF] Default language if unmatched language.

"fr"

String

Text displayed in the header.

"Throws: "

String

Text displayed in the header.

"Points: "

Assets

Key
Size
Explanation
Default

~600 x 600px (adapt background sizes)

Background of the game.

50 x 50px

Visual of the ball.

/

Visual of the keeper (used in penalty).

/

~100 x 150px (adapt goal sizes)

Visual of the bin (back).

~100 x 150px (adapt goal sizes)

Visual of the bin (front).

~400 x 200px

Visual of the scoreboard.

Last updated