godot-genre-card-game
Installation
SKILL.md
NEVER Do (Expert Anti-Patterns)
Logic & Architecture
- NEVER hardcode card logic inside UI scripts; strictly encapsulate gameplay effects in
Callableobjects or Command resources pushed to a LIFO stack. - NEVER perform board-state calculations (Power/Toughness) in
_process(); strictly use Signal-driven triggers or a centralizedEffectStackresolver. - NEVER forget LIFO Stack Resolution; strictly use
Array.push_back()andArray.pop_back()to resolve reactions from top-to-bottom.
UX & Animation
- NEVER skip Z-Index management during drag-and-drop; strictly raise the card to the front on click to prevent it sliding under other cards.
- NEVER allow instant card "teleportation" between piles; strictly use
create_tween()/tween_propertychains (0.2s+) for pile moves. - NEVER use
global_positionfor cards in hand; strictly position them using aCurve2Dlayout withsample_baked()for smooth arcs.