Project Overview - nodeg0/godot_card_tools GitHub Wiki

Layout:

Note, the entire main scene is created for demo purposes. It may be safely removed without impact. Signals are connected in code whenever possible. Those that aren't connected likely are used for updating HUD elements or for the demo. They should be commented accordingly.

Nodes:

Library.tscn: Single node. houses Library.gd. Used for making libraries of cards based provided path and variable (currently "rarity", but can be changed)

Deck.tscn: Single node. Houses Deck.gd. Used for generating default deck, saving and loading deck. Contains one exported variable (bool) Deck_on_screen, which determines if there is a requirement for cards to spawn from a deck location or just have them appear in the hand.

Table.tscn: Card.tscn:

Resources: Note on creating Note on Cards folder Cardtypes.gd: This is the base custom resource for creating cards. extends Resource, class_name Cardtypes. Variables: export var (String) card_name: Used for defining a card name on generated resource. All other variables are for example purposes and should be edited to provide whatever information you need in a card. The variable rarity is currently used for sorting cards in the Library scene/script.

Scripts: Card.gd Deck.gd Library.gd Table.gd