deck-builder
deck-builder [code] [demo] is a web-based application for building and saving card decks.
Configuration
The config.json file can be modified to configure the deck-builder.
{
"paths": {
"cardJson": "prm/cards.json",
"images": "prm/img/"
}
}
- paths:
- images: Path to the card images directory.
- cardJson: Path to the cards.json file containing card data.
Card Data
The cards.json file contains the game specific deckbuilding parameters and the card data entries.
{
"deckSizeLimit": 21,
"cardLimitPerDeck": 7,
"useRemoteImages": false,
"corsProxy": "",
"cardDimensions": {
"width": 367,
"height": 512
},
"cardData": {
"000010": {
"image": "000010.webp",
"name": "Placeholder_0",
"description": "Placeholder description."
}
}
}
- deckSizeLimit: Sets the maximum number of cards allowed in the deck.
- cardLimitPerDeck: Sets the maximum number of copies of a single card.
- useRemoteImages: Boolean that determines whether to load card images from remote URLs or local files.
- corsProxy: Sets the CORS proxy URL to be used for remote URLs.
- cardDimensions: Defines the card image width and height.
- cardsPerRow: Sets the number of cards displayed per row when exporting the deck to an image.
- cardData:
- cardId: A unique identifier for each card.
- name: The card's displayed name.
- description: The card's description, displayed as a tooltip when hovering over the card.
- image: The URL or local filename of the card's image. Local filename should be relative to the images directory.