mabolen / astromage

3 stars 2 forks source link

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

ROADMAP

What needs to happen:

Adding cards

A card will consist of :

    name: string
    description: string
    type: string // defense, power, offense
    cost: number // how many resources it costs to play this card
    rarity: number // between 1 and 5 (five being rarest)
    other?: CardOther // special card effects that have not been created
    actions: (p: CardPlayerStats, o: CardPlayerStats) => void // the effect of playing this card

Card actions/effects include:

  set(player, target, amount) // player to be affected, target (resource, production, stat), amount (number to set)
  change(player, target, amount) // same as set but adds or subtracts amount from target
  damage(player, amount) // same as change but strictly affects hull then health

Generating card images

Please see https://github.com/mabolen/astromage/pull/12#issue-1410318325