đ Card
The card is the core of Rune Rising's gameplay. Besides the basic strength and health points, a card consists of card actions which are can be defined by the user on creation. Card actions define the abilities of the card.
To compose a card, the user selects one or more triggers and then attaches the card actions. We call this a card flow.
Typesâ
At the moment there are just two types.
- Land: Provides mana to be used to play cards.
- Creature: Creatures are can fight and be played when the player has enough mana.
Propertiesâ
Besides the types and card flows, a card is defined by other properties too.
These are:
interface CardBaseData {
id: string;
/** The name/title of the card */
name: string;
/** The URL of the image for the card */
image: string;
/** An optional short description for the card. */
description?: string;
/** How much the card costs in order to be allowed to be played. Empty array means free. */
cost: ManaCost[];
/** User ID of the user who created the card */
user: string;
/** whether the card is an official card of the game. */
is_official?: boolean;
}
Land/creature cards:
/** Card definition for type "land" */
export interface CardLandShape extends CardBaseData {
type: 'land';
}
/** Card definition for type "creature" */
export interface CardCreatureShape extends CardBaseData {
type: 'creature';
damage: number;
health: number;
flows?: CardACtionFlowItems[][];
}
<code references>â
General:
Front-End UI: