Godot genre fighting

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

Godot genre fighting is an AI agent skill from the GitHub repository thedivergentai/GD-Agentic-Skills. Expert blueprint for fighting games including frame data (startup/active/recovery frames, advantage on hit/block), hitbox/hurtbox systems, input buffering (5-10 frames), motion input detection (QCF, DP), combo systems (damage scaling, cancel hierarchy), character states (idle/attacking/hitstun/block

How to use this skill

Skill file

NEVER Do (Expert Anti-Patterns)

Frame-Data & Logic

Character & Animation

Input & Networking


πŸ›  Expert Components (scripts/)

MANDATORY reads before implementing the matching system:

1. fighting_input_buffer.gd β€” buffers + motion (QCF/DP)

2. direct_hitbox_query.gd β€” exclusive hit resolution path (intersect_shape)

3. rollback_state_serializer.gd β€” snapshot/restore for netplay

Original Expert Patterns

Modular Components

Restored from baseline (load on demand)


Core Loop

Neutral β†’ Confirm Hit β†’ Combo β†’ Advantage β†’ Repeat

Decision Trees (no Area2D / inline system dumps)

Frames & fixed loop

| Need | Action |

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

| Attack timing Resource | .tres with startup/active/recovery/advantage β€” not script constants |

| 60fps sim step | deterministic_physics_loop.gd |

| Anim sync to frames | manual_animation_advancer.gd (ADVANCE_MANUAL) |

Input

| Need | Action |

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

| 5–10f buffer + QCF/DP | MANDATORY fighting_input_buffer.gd |

| Sub-frame links | input_accumulation_control.gd β€” disable accumulated input |

Hitboxes

| Need | Action |

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

| Frame-perfect hit | MANDATORY exclusively direct_hitbox_query.gd |

| Volume authoring helper | hitbox_component.gd for shapes/layers β€” never area_entered / get_overlapping_areas for resolution |

| Proximity guard | Query expanded shape before active frames land |

Combos / cancels

| Need | Action |

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

| Damage scaling ~10%/hit | Track in combo state; store cancel hierarchy on Attack Resources |

| States | IDLE/ATTACKING/HITSTUN/BLOCKSTUN… with integer state_frame β€” peer godot-state-machine-advanced |

Netcode

| Need | Action |

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

| Snapshots | MANDATORY rollback_state_serializer.gd |

| Transport | UDP/ENet via raw_byte_network_sync.gd; peer godot-multiplayer-networking |


Balance Guidelines

| Element | Guideline |

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

| Health | 10,000-15,000 for ~20 second rounds |

| Combo damage | Max 30-40% of health per touch |

| Fastest moves | 3-5 frames startup (jabs) |

| Slowest moves | 20-40 frames (supers, overheads) |

| Throw range | Short but reliable |

| Meter gain | Full bar in ~2 combos received |

For roster / matchup simulation, use godot-monte-carlo-balancer.

Common Pitfalls

| Pitfall | Solution |

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

| Infinite combos | Hitstun decay + gravity scaling |

| Area2D signal hits | Replace with direct_hitbox_query.gd |

| Lag input drops | Buffer 8+ frames |

| Desync | Deterministic loop + rollback serializer |

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