Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Card Game Skeleton

An asset by Axiomata
The page banner background of a mountain and forest
Card Game Skeleton thumbnail image
Card Game Skeleton thumbnail image
Card Game Skeleton thumbnail image
Card Game Skeleton hero image

Quick Information

0 ratings
Card Game Skeleton icon image
Axiomata
Card Game Skeleton

This addon provides a simple workflow for designing cards, managing data, building decks, and instantiating card scenes within the Godot editor.

Supported Engine Version
4.5
Version String
1.1
License Version
MIT
Support Level
community
Modified Date
3 days ago
Git URL
Issue URL

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

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

Template & Inheritance System

  • The user can choose the location that cards are saved to in the Project Settings menu.
  • Automatically generates unique .gd scripts 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.
image

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

Installation

  1. Download the latest release or clone this repository.
  2. Copy the addons/CardGameSkeleton folder into your Godot project's res://addons/ directory.
  3. Open Project > Project Settings > Plugins.
  4. Enable CardGameSkeleton.
  5. 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.tscn to use it as a factory template.

2. Creating a Card

  1. Open the New Card tab.
  2. Fill in the stats (Name, Cost, Description, etc.).
  3. Click Save Card.
  4. The addon generates a .tscn scene, a .gd script, 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

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Card Game Skeleton icon image
Axiomata
Card Game Skeleton

This addon provides a simple workflow for designing cards, managing data, building decks, and instantiating card scenes within the Godot editor.

Supported Engine Version
4.5
Version String
1.1
License Version
MIT
Support Level
community
Modified Date
3 days ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers