slaytheweb
slaytheweb copied to clipboard
Play card on click/double click.
Currently the use has to drag and drop the card to play it.
we could implement a click logic: on double click play this card, if possibleTarget > 1 then disable and display warning.
That's a good idea. Drag/drop isn't always nice... Since there are often multiple targets, how about something like this?
- tapping the card activates some "choose target" mode
- in "choose-target" mode you tap a target to select
- then it plays the card
Think it's important the player still chooses the target manually and it isn't automatated.
Hummm,
Think it's important the player still chooses the target manually and it isn't automated.
I understand the feeling but i would still automate it if there is only one target possible :P.
You can have multiple targets if they are monsters, but can you have multiple targets for your self/team ? AFAIK some cards only apply to your hero so there the choose target would be too much I think.
Cards have a target
enum property that can one of the following. The naming could be better, but it's basically "yourself", a single enemy or all enemies.
-
player
-
enemy
-
all enemies
So the only scenario where you need to choose a target manually is when there are multiple enemies AND the card you play has target: enemy
.
I didn't mean to make this more complicated but I guess it is a little bit complicated 🦐 Try it out if you like! In Slay the Spire there's also keybindings for selecting a card (numbers 1, 2, .... 0).