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
visible_hitbox

Boolean

[DEV] Display the hitboxes.

false

number_of_shoot

Integer

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

5

time_between_shoot

Integer

Delay between each "shoot".

1000

background > height / width

Integer

Background's visual sizes.

600 / 900

ball > height / width

Integer

Ball's visual sizes (to render).

50 / 50

ball > speed

Integer

Speed of the ball.

9

keeper > active

Boolean

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

false

keeper > height / width

Integer

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

1 / 1

keeper > offsetY

Integer

Vertical adjustment of the keeper (used in penalty).

0

keeper > speed > min / max

Integer

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

1 / 1

goal > height / width

Integer

Goal's visual sizes (to render).

145 / 113

goal > offsetY

Integer

Vertical adjustment of the goal.

50

goal > paddingX

Integer

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

10

goal > floorLine

Integer

Ground level (if no goal).

100

goal > scoreLine

Integer

Score level (if goal).

0

goal > scoreLineOffsetY

Integer

Height to reach to score a point.

-75

default_lang

String

[PTF] Default language if unmatched language.

"fr"

shoot

String

Text displayed in the header.

"Throws: "

score

String

Text displayed in the header.

"Points: "

Assets

Key
Size
Explanation
Default
background > url

~600 x 600px (adapt background sizes)

Background of the game.

ball > url

50 x 50px

Visual of the ball.

keeper > url

/

Visual of the keeper (used in penalty).

/

goal > url

~100 x 150px (adapt goal sizes)

Visual of the bin (back).

goal > url_foreground

~100 x 150px (adapt goal sizes)

Visual of the bin (front).

board > url

~400 x 200px

Visual of the scoreboard.

Last updated