- Edited
I've been working on gameplay, added two new card effects.
the first one lets you draw cards of a character class.
cards can be one of 5 classes, these are "normal", which can be used by anyone, "barbarian", "wizard" and "rogue".
the second one lets you draw cards containing an effect.
I used this last one on the Rage card, it now draws 3 "damage" cards from the deck.
I also added some better placeholder art, automatic enemy spawning, and damage to the player party. I also implemented block, which is like extra health.
the cards I made so far are:
Sword attack, throw rock, throw axe: they deal damage.
throw chair: deals a lot of damage and is removed from the deck and play after using it.
rage: draws 3 damage cards and get reshuffled
second wind: heals 8, draws a card and gets reshuffled
fireball: wizard card, deals a lot of damage and gets removed from play but not from the deck
shield: gain 4 block
healing potion: heal 4
I'm trying to think of new effects and cards to make, I think next will be some card that applies bleed, some AOE, self damage, discard cards, maybe some curse and more things like burning, freeze, etc.
update: added the discard mechanic with some difficulty. it looks really cool.
added a new card reckless attack which deals 10 damage and discards a card.
for discarding cards I had to create a variable queue_discard
to which are added the number of cards to discard. then, when the card_played
function runs (after playing a card), it picks random cards from the hand and discards them. I then create a PreviewCard
and tween it on screen to look like its being tossed.
This gives me an idea, discard cards by class and effect.
a barbarian card that picks a random card of another class and discards it.
update: added a mechanic to generate random cards of a class, and one to discard cards of a class, but they only work with one class at a time.
I made lots of fun barbarian cards:
indomitable spirit: generates 3 barbarian cards, heals 2.
random rubish go: discards a random wizard card, generates a barbarian card and deals damage.
mead: heals 1, generates a barbarian card and gets removed from the deck.
these hands: generates 1 barbarian card, deals 4 damage.
so barbarian is turning into a class that deals damage, discards cards, and then generates random cards to replace them.
I also added a end turn button that reshuffles the hand, this way you can save certain cards (like 1 use) for later encounters, or non-reshuffling ones.