Godot genre card game

From thedivergentai/GD-Agentic-Skills · View interactive version

Godot genre card game is an AI agent skill from the GitHub repository thedivergentai/GD-Agentic-Skills. Expert blueprint for digital card games (CCG/Deckbuilders) including card data structures (Resource-based), deck management (draw/discard/reshuffle), turn logic, hand layout (arcing), drag-and-drop UI, effect resolution (Command pattern), and visual polish (godot-tweening, shaders). Use for CCG, dec

How to use this skill

Skill file

NEVER Do (Expert Anti-Patterns)

Logic & Architecture

UX & Animation

Deck & State Management


🛠 Expert Components (scripts/)

MANDATORY reads before implementing the matching system:

1. card_effect_resolution.gd — LIFO effect stack (push_back / pop_back)

2. card_tween_manager.gd — interruptible pile/hand Tweens (no teleports)

3. card_data_resource.gd — Inspector-safe Resource card definitions

Original Expert Patterns

Modular Components


Core Loop

  1. Draw → 2. Evaluate → 3. Play → 4. Resolve (LIFO stack) → 5. Discard/End

Decision Trees

Effect stack

| Need | Action |

|------|--------|

| Nested reactions / counters | MANDATORY card_effect_resolution.gd — LIFO only (pop_back) |

| FIFO sequential animations only | Rare; keep a separate queue — do not reuse the reaction stack |

Hand & board

| Need | Action |

|------|--------|

| Arc hand layout | Curve2D.sample_baked + card_tween_manager.gd |

| Drag targeting | card_drag_drop.gd |

| Dense boards (100+ icons) | _draw() / board_state_dictionary.gd — not Control-per-token |

Data

| Need | Action |

|------|--------|

| Card definitions | MANDATORY card_data_resource.gd (parameterless _init) |

| Deck RNG | deck_shuffle_bag.gd |

| Turn phases | turn_state_machine.gd |

Skill Chain

| Phase | Skills | Purpose |

|-------|--------|---------|

| 1. Data | resources, custom-resources | Card properties (Cost, Type, Effect) |

| 2. UI | control-nodes, layout-containers | Hand layout, tooltips |

| 3. Input | drag-and-drop, state-machines | Targeting, hovering |

| 4. Logic | command-pattern, signals | LIFO stack, turn phases |

| 5. Polish | godot-tweening, shaders | Draw juice, foils |

Common Pitfalls

| Pitfall | Solution |

|---------|----------|

| FIFO pop_front on reaction stack | Use LIFO pop_back in card_effect_resolution.gd |

| Instant pile snaps | Tween via card_tween_manager.gd |

| Float ATK/HP | Use int stats on Resources |

Elite notes (optional polish)

Expert knowledge (on demand)

LLM-ignorance rule: If a general agent would not know it before reading, load the reference — never delete expert deltas.

Reference

Progressive disclosure: open Official Documentation links only when researching a specific API; load Related Skills when routing to a peer domain — do not preload the whole lattice.

Official Documentation

Related Skills

Prerequisites
Complements
Downstream / consumers
Master
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.