Godot genre battle royale

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

Godot genre battle royale is an AI agent skill from the GitHub repository thedivergentai/GD-Agentic-Skills. Expert blueprint for Battle Royale games including shrinking zone/storm mechanics (phase-based, damage scaling), large-scale networking (relevancy, tick rate optimization), deployment systems (plane, freefall, parachute), loot spawning (weighted tables, rarity), and performance optimization (LOD, oc

How to use this skill

Skill file

NEVER Do (Expert Anti-Patterns)

Networking & Scale

Mechanics & Performance


Available Scripts

MANDATORY: Read the appropriate script before implementing the corresponding pattern.

Zone / Storm

[storm_system.gd](scripts/storm_system.gd)

MANDATORY for any zone/storm work — phase radii, contained next-center selection, distance-to-center damage (anti-tunneling). Do not paste inline zone_manager tutorials.

Networking & Multiplayer

[kill_feed_bus.gd](scripts/kill_feed_bus.gd)

Global elimination signal bus with match stat tracking.

[headless_branch_logic.gd](scripts/headless_branch_logic.gd)

Expert dedicated server initialization that branches logic based on headless execution and server-specific feature flags.

[enet_br_server.gd](scripts/enet_br_server.gd)

High-player-capacity ENet server setup optimized for 100+ concurrent peers over UDP.

[state_replication_unreliable.gd](scripts/state_replication_unreliable.gd)

Pattern for synchronizing player transforms via TRANSFER_MODE_UNRELIABLE to minimize network congestion in large matches.

[authoritative_looting.gd](scripts/authoritative_looting.gd)

Authoritative server-side validation logic for preventing cheat-based item collection and infinite looting.

[targeted_rpc_relay.gd](scripts/targeted_rpc_relay.gd)

Optimized communication pattern using rpc_id() to target specific peers and reduce wasted packet broadcasts.

[server_state_buffer.gd](scripts/server_state_buffer.gd)

Handling network jitter and out-of-order UDP packets via sequential state buffering and tick-based sorting.

Performance & Optimization

[rid_loot_spawner.gd](scripts/rid_loot_spawner.gd)

Bypassing the node hierarchy for massive loot density. Uses RenderingServer directly to eliminate CPU overhead for item drops.

[async_map_loader.gd](scripts/async_map_loader.gd)

Non-blocking map sector streaming using ResourceLoader background threads for seamless open-world exploration.

[multimesh_vegetation.gd](scripts/multimesh_vegetation.gd)

Drawing dense foliage and environment assets (100k+ instances) via MultiMeshInstance3D to maximize rendering performance.

[threaded_ai_manager.gd](scripts/threaded_ai_manager.gd)

Offloading server-side bot behavior and pathfinding logic to the WorkerThreadPool to prevent main-thread stalling.

Restored from baseline

NEVER Do in Battle Royale


Core Loop

Deploy → Loot → Move with storm → Engage → Last standing.

Skill Chain (GDSkills peers only)

| Phase | Skills | Purpose |

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

| 1. Net | godot-multiplayer-networking | Authoritative server, relevancy, RPCs |

| 2. Map | godot-3d-world-building, godot-genre-open-world | Terrain scale, streaming, HLOD |

| 3. Items | godot-inventory-system | Backpack / attachments / armor |

| 4. Combat | godot-genre-shooter, godot-combat-system | Hitscan/projectile + damage validation |

| 5. Zone | MANDATORY storm_system.gd | Storm phases / DPS / contained centers |

| 6. Balance | godot-monte-carlo-balancer | Zone DPS, loot rarity, TTK bands |


Decision Trees (strip inline deploy/loot/zone tutorials)

Zone / Storm

| Need | Action |

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

| Phase shrink, contained centers, distance DPS | MANDATORY storm_system.gd |

| Storm wall VFX | Inverted SphereMesh + unshaded cull_disabled shader driven by storm radius |

Loot

| Need | Action |

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

| Dense drops | rid_loot_spawner.gd + pooling |

| Anti-cheat pickup | MANDATORY authoritative_looting.gd |

| Tables / rarity | Data Resources + peer inventory — not instantiate() loops in SKILL.md |

Deploy

| Need | Action |

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

| Plane → freefall → parachute → grounded | Finite state on player controller; server validates landing inventory |

| Map sectors | async_map_loader.gd |

Networking

| Need | Action |

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

| 100+ peers | enet_br_server.gd + headless_branch_logic.gd |

| Movement | state_replication_unreliable.gd |

| Relevancy | Near ~20Hz+, far ~5Hz; replication_interval / interest management |

| Targeted messages | targeted_rpc_relay.gd |

| Jitter buffer | server_state_buffer.gd |


Advanced (keep elite, no deploy/loot re-tutorials)

Lag Compensation

Server keeps transform history; validate client hit timestamps against rewound poses (authoritative). Pair with shooter/combat peers.

Delta-Patching

MultiplayerSynchronizer + REPLICATION_MODE_ON_CHANGE for health/inventory; ALWAYS only for hot transforms. Cap with delta_interval.

Zone Visualizer

Unshaded, cull_disabled spatial shader on inverted sphere scaled by storm_system.gd.

Common Pitfalls

  1. Too much loot → pool + RID spawner
  2. Camping → storm forces movement (storm_system.gd)
  3. Client hit authority → server validate with history

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.