Godot genre rhythm

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

Godot genre rhythm is an AI agent skill from the GitHub repository thedivergentai/GD-Agentic-Skills. Expert blueprint for rhythm games including audio synchronization (BPM conductor, latency compensation with AudioServer.get_time_since_last_mix), note highways (scroll speed, timing windows), judgment systems (Perfect/Great/Good/Bad/Miss), scoring with combo multipliers, input processing (lane-based

How to use this skill

Skill file

NEVER Do (Expert Anti-Patterns)

Audio Sync & Logic

Feedback & Performance


🛠 Expert Components (scripts/)

MANDATORY reads before implementing the matching system:

1. rhythm_conductor.gd — canonical audio clock

2. input_judge_logic.gd — time-window judging

3. note_object_pool.gd — pooled notes (no per-beat instantiate)

4. latency_calibrator.gd — player hardware offset

Original Expert Patterns

Modular Components

Do NOT load unused lanes: skip audio_spectrum_analyzer.gd unless building reactive viz; skip dynamic_bpm_handler.gd for constant-BPM tracks.


Script map: Baseline MusicConductor samples → rhythm_conductor.gd; JudgmentSystem → input_judge_logic.gd; chart spawn → note_orchestrator.gd + note_object_pool.gd.

Core Loop

  1. Calibrate latency → 2. Conductor clock → 3. Spawn pooled notes → 4. _input judge → 5. Score/combo UI

Decision Trees

Clock (one recipe)

| Need | Action |

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

| Song position | MANDATORY rhythm_conductor.gd get_song_time() |

| Visual highway | Position from song time / beats — never _process delta integration as truth |

| Hit timestamp | Capture in _input / _unhandled_input, compare to note target time |

Systems

| Need | Action |

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

| Judgment windows | input_judge_logic.gd |

| Scoring / combo | rhythm_scoring_system.gd + score_combo_manager.gd |

| Chart spawn | note_orchestrator.gd + pool |

| Juice | rhythm_ui_feedback.gd / beat_synced_animator.gd |

Do not re-inline MusicConductor / NoteHighway / JudgmentSystem / RhythmScoring classes in this skill — load the scripts.

Skill Chain

| Phase | Skills | Purpose |

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

| 1. Audio | godot-audio-systems | Stream clock + latency |

| 2. Input | godot-input-handling | Timestamped hits |

| 3. UI | godot-ui-containers | Highway / HUD |

| 4. Perf | pooling / shaders | Dense charts |

| 5. Balance | godot-monte-carlo-balancer | Window difficulty bands |

Common Pitfalls

| Pitfall | Solution |

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

| Time.get_ticks_* conductor | Use playback + mix − latency |

| Judge in _process | _input + song time |

| Instantiate per note | note_object_pool.gd |

MANDATORY for depth beyond decision trees and script catalog: rhythm-systems-deep.md. Do NOT Load on first-pass wiring — use bundled scripts/ first.

Godot-Specific Tips

  1. Audio latency: Calibrate with AudioServer and custom offset
  2. Input polling: Use _input not _process for precise timing
  3. Shaders: UV scrolling for note highways
  4. Particles: Use GPUParticles2D for hit effects

3. Hardware-Synced Latency Calibration

Calculate precise offsets by compensating for OS/Hardware latency.

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.