Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Play card on click/double click. #151

Open
SamuelRott opened this issue Jul 1, 2021 · 3 comments
Open

Play card on click/double click. #151

SamuelRott opened this issue Jul 1, 2021 · 3 comments
Labels
feature New feature or request low priority Consider doing other things first UI Styling and other things related to the game's UI/UX

Comments

@SamuelRott
Copy link
Collaborator

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.

@SamuelRott SamuelRott added feature New feature or request low priority Consider doing other things first labels Jul 1, 2021
@oskarrough oskarrough added the UI Styling and other things related to the game's UI/UX label Jul 1, 2021
@oskarrough
Copy link
Owner

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.

@SamuelRott
Copy link
Collaborator Author

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.

@oskarrough
Copy link
Owner

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request low priority Consider doing other things first UI Styling and other things related to the game's UI/UX
Projects
None yet
Development

No branches or pull requests

2 participants