Godot genre open world

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

Godot genre open world is an AI agent skill from the GitHub repository thedivergentai/GD-Agentic-Skills. Expert blueprint for open world games including chunk-based streaming (load/unload regions dynamically), floating origin (prevent precision jitter beyond 5000 units), HLOD (hierarchical LOD for distant meshes), persistent state (track entity changes across unloaded chunks), POI discovery systems (co

How to use this skill

Skill file

NEVER Do (Expert Anti-Patterns)

World & Persistence

Physics & Performance

Logic & Architecture


🛠 Expert Components (scripts/)

MANDATORY by concern (read before implementing):

- Streaming → world_streamer.gd + async_chunk_loader.gd

- Origin → choose one shifter (see decision tree) — floating_origin_shifter.gd or world_origin_shifter.gd

- HLOD → hlod_visibility_config.gd only (no phantom configurator)

- Far logic gate → lod_logic_enabler.gd

Original Expert Patterns

Modular Components


Core Loop

Traverse → Discover POIs → Quest/travel → Persist deltas → Weather/day cycle immersion.

Decision Tree: Streamer / Origin / HLOD

| Concern | Choose | Script |

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

| Chunk load/unload around player | ResourceLoader threaded + deferred add_child | MANDATORY world_streamer.gd, async_chunk_loader.gd |

| Origin: gameplay entities in a group, custom shift policy | Group "world_entities" shift | floating_origin_shifter.gd |

| Origin: single world_root + player warp + physics interp + shader offset | Root shifter | world_origin_shifter.gd |

| Origin: planetary / >~few×10k units, physics-heavy | Large World Coordinates (double-precision build) | Project setting — may still use a shifter for shader/audio sync |

| Distant mesh swap / impostor | VisibilityRange HLOD | MANDATORY hlod_visibility_config.gd |

| Disable far AI/physics | Distance/chunk gate | lod_logic_enabler.gd |

| Persist only changes | Binary delta | binary_save_manager.gd |

Pick one origin strategy — do not dual-own floating_origin_shifter and world_origin_shifter on the same world root.


Architecture (no duplicated Elite dumps)

  1. Streamer — Active chunk set from player cell; unload with queue_free; load via threaded ResourceLoader; instantiate with call_deferred. Do not re-inline streamer pseudocode — read the MANDATORY scripts.
  2. Delta state — Dictionary keyed by chunk id for dead entities / looted chests; write with binary saver when chunks unload.
  3. HLOD — Proxy mesh visibility_range_begin; detail children use visibility_parent — configure via hlod_visibility_config.gd.
  4. POI / compass — Density > size; angle map UI from player forward to POI; no need for a second floating-origin code block.

Common Pitfalls

  1. Empty world — density over km² vanity
  2. Save bloat — delta-only persistence
  3. Far physics — lod_logic_enabler.gd
  4. Phantom hlod_configurator.gd — does not exist; use hlod_visibility_config.gd

MANDATORY for depth beyond decision trees and script catalog: open-world-elite-implementations.md. Do NOT Load on first-pass wiring — use bundled scripts/ first.

Godot-Specific Tips

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.