Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser
Quick Information
This addon provides a simple workflow for designing cards, managing data, building decks, and instantiating card scenes within the Godot editor.
Godot Card Game Skeleton
An addon meant for building card games in Godot 4.x.
This addon provides a workflow for designing cards, managing data, building decks, and instantiating card scenes within the Godot editor.
(Images provided here are based on the example project based around a standard deck of 52 playing cards.)
Features
Card Database Management
- Saves cards to a JSON dictionary for easy loading and management.
- Text-readable data storage that plays nicely with version control.
- Create, Read, Update, and Delete cards directly from the editor dock.
- Automatically associates card art and scene files with data based on folder structure or custom paths.
Custom Attribute System
- Allows the user to define their own custom card attributes (e.g., Health, Mana, Power, Description).
- Attributes can be added or removed via the Project Settings menu.
- Attributes can be in the form of either Text, Numeric, or Enumerated types.
- Prevents saving "broken" cards by enforcing required fields like Name and Scene Path.
Template & Inheritance System
- The user can choose the location that cards are saved to in the Project Settings menu.
- Automatically generates unique
.gdscripts for every new card, inheriting from either the provided abstract base class or the user's own. - Safely batch-update the inheritance path of all existing cards when you refactor/relocate your base script.
Visual Deck Builder
- Saves decklists to a JSON dictionary for easy loading and management.
- Create, edit, and delete decks via the Manage Decks menu.
- Building decks is easy with the card browser that lets the user search through their library of created cards.
- Search cards via filtering by Name, Attribute and sorting or numerical stats.
Installation
- Download the latest release or clone this repository.
- Copy the
addons/CardGameSkeletonfolder into your Godot project'sres://addons/directory. - Open Project > Project Settings > Plugins.
- Enable CardGameSkeleton.
- A new tab called "Card Game Skeleton" (or your custom name) will appear in the top left panel.
Getting Started
1. Configuration
Go to the Settings tab in the addon menu:
- Root Directory: Set where your card files will be saved (default:
res://Cards/). - Attributes: Add the stats your game needs (e.g., "Cost" as a Number, "Rarity" as an Enum).
- Template Path: (Optional) Point to your custom
MyCardBase.tscnto use it as a factory template.
2. Creating a Card
- Open the New Card tab.
- Fill in the stats (Name, Cost, Description, etc.).
- Click Save Card.
- The addon generates a
.tscnscene, a.gdscript, and a JSON entry automatically.
3. Using Data in Game
You can either write your own loader from the JSON files created, or you can use the CardLibrary script attached to the CardJSONManager node in the addon as an API in your game.
This addon provides a simple workflow for designing cards, managing data, building decks, and instantiating card scenes within the Godot editor.
Reviews
Quick Information
This addon provides a simple workflow for designing cards, managing data, building decks, and instantiating card scenes within the Godot editor.