Skip to content

Card/Ability System #1

@3mr-TheBadNomads

Description

@3mr-TheBadNomads

This is not a bible, just how I imagine it to be so change anything you want.

This is the system for cards which translate to abilities.

  • Define a hand, which is an array of cards of size 3
  • Define a Deck of all cards a player has (optional: make it configurable somehow)
  • If it helps Define a discard pile.
  • In a hand, cards of index 0 are bound to a specific input (say Q), card of index 1 to another and so on.
  • Ensure the system we talked of: you draw hands from deck, when you use a card it is disabled, when all cards in hand are disabled draw from deck until you fill your hand, if deck is empty refill it with discarded cards.
  • Define a redraw function that allows to discard all cards in hand and redraw, but should have a cooldown.

Remember the three main abilities, but I don't think this can implement them without the Damage System:

  • Deal Damage (we can have multiple cards with different damage numbers but ultimately same behaviour)
  • Heal (we can have multiple cards with different healing numbers but ultimately same behaviour)
  • Knock back enemies (just push enemies in front of you)

References:
https://youtu.be/sd4qT6tZjDg?t=291
https://www.youtube.com/watch?v=k2I3bxEvANA this one has the exact system, but it shows all cards you are about to draw in advance

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions