erik-lance / Cataclysm-Digital-Companion

A digital companion for GAMEDES Elective
https://cataclysm-digital-companion.vercel.app
0 stars 0 forks source link

Card Data #8

Open erik-lance opened 7 months ago

erik-lance commented 7 months ago

Create a cards.json file under /src/data containing all the cards' info. This is sort of just an encoding task but a bit tedious with the many cards we have. Sample file:

[
    {
        "id": 0,
        "name": "Catwalk",
        "image": "catwalk.png",
        "description": "Move 1 tile",
        "type": "Move",
        "detailed": "Moves 1 tile either horizontally or vertically. Has to move unless blocked in all directions."
    },
    {
        "id": 1,
        "name": "Catomic Bomb",
        "image": "catomic_bomb.png",
        "description": "Mark a single tile anywhere on the board. By the end of next turn, deal 3 dmg in a 2 tile radius from the marked tile to All players including yourself.",
        "type": "Action",
        "detailed": "Mark a single tile: a tile on the board will be targeted. Place a marker tile.\nEnd of next turn: card takes effect after the last played card in the next cycle\nRadius 2: any players within a 2 tile range will be affected once activated. (count 2 tiles in all directions including diagonally) "
    }
]