I've now updated it so that it at least does something other than taking a dump after two clicks. The cards get redrawn after every play, and the enemy has a relatively simple AI that makes an intelligent decision on what to play.
Right now you won't see much of what is going on unless you play it with the console open. Otherwise, the only thing you can see is the cards changing.
Click on a card twice (doesn't have to be a quick double click) in order to play that card. Press space to toggle the hidden cards (this is just to show you what is going on with the wild cards and the enemy hand, will not be in the final game).
How to Play:
You have two cards available to play: an attack card and a defense card. The power of those cards is randomly chosen to be any natural number lower than your current attack/defense stat.
When you have chosen the card to play, they get sent to the stage (currently not visible). If both players played the same card type, i.e. two attacks or two defenses, then the hand gets nullified and the only thing that resolves is the wild cards, which heal/deal direct damage/boost the played card/debuff the played card (visible, but not yet implemented). If the players played opposite card types, then the person who played the card with the highest value, regardless of whether it is an attack or defense card, deals damage to the opposite player equal to the difference between those cards.
The battle ends (NYI) when either player reaches 0 health.
The scene will be where an animated representation of the card game is shown. A player will attack or defend, and react accordingly based on the resolution of the stage. I plan to have 4 different characters to choose from: a goblin, an adventurer, a knight, and a wizard, and all of them will animate in ways that would represent those archetypes well.
CALLING BORED ARTISTS:
As you can see, my art is sub par at best (I think I can handle the cards, but I wouldn't really know how to begin animating a player.) If you would like to help, I'd need quite a few things, but your contribution would help the game tremendously:
There are four player types (goblin, adventurer, knight, and wizard) that all need the several animations:
- An idle state (while they are waiting for the command);
- An attack animation;
- A defend animation;
- The two above need three subtypes:
- - A missed animation (for when both players play the same card type, i.e. hide behind shield and peek out, wondering what happened.)
- - A successful resolution (your attack hits)
- - A failed resolution (you get hit)
- A death animation;
- A victory animation.
Implement the wild card system
Implement the experience system
Implement the inventory system
Add better art
Give a better representation of what is occuring