Godot genre simulation

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

Godot genre simulation is an AI agent skill from the GitHub repository thedivergentai/GD-Agentic-Skills. Expert blueprint for simulation and tycoon games (SimCity, RollerCoaster Tycoon, Factorio, Two Point Hospital) covering economy management, time progression, interconnected systems, NPC simulation, and feedback loops. Use when building management sims, tycoon games, city builders, or resource optimi

How to use this skill

Skill file

NEVER Do (Expert Anti-Patterns)

Simulation & Economy

Performance & Threading


πŸ›  Expert Components (scripts/)

MANDATORY reads before implementing the matching system:

1. tycoon_economy.gd β€” integer cents / discrete stocks

2. sim_tick_manager.gd β€” _physics_process tick accumulator

3. simulation_tick_controller.gd β€” speed / pause control surface

Original Expert Patterns

Modular Components


Core Loop

  1. Place/build β†’ 2. Tick economy β†’ 3. Read income vs expense β†’ 4. Unlock / expand β†’ 5. Optimize logistics

Decision Trees

Currency & time (must match NEVER)

| Need | Action |

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

| Money / wallets | MANDATORY tycoon_economy.gd β€” integer cents, never float primary |

| Sim clock | MANDATORY sim_tick_manager.gd β€” accumulator on _physics_process |

| Speed UI | simulation_tick_controller.gd |

Tick rate vs UI vs threads

| Entity / load | Strategy |

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

| < ~200 entities | Tick signal β†’ direct update; UI via resource_changed only |

| Hundreds of agents | Rotate pools per tick; npc_schedule_agent.gd |

| Heavy graph / path logistics | Offload with WorkerThreadPool; call_deferred UI β€” see simulation_patterns.gd / economy_graph_manager.gd |

| Stationary management screens | Enable OS.low_processor_usage_mode |

Do not re-inline TycoonEconomy / SimulationTime / Worker tutorials β€” load the scripts.

Skill Chain

| Phase | Skills | Purpose |

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

| 1. Data | resources, godot-economy-system | Stocks / sinks |

| 2. Time | tick manager | Deterministic hours |

| 3. Agents | schedules / nav | NPCs & logistics |

| 4. Perf | WorkerThreadPool | Heavy ticks |

| 5. Balance | godot-monte-carlo-balancer | Bankruptcy / growth bands |

Common Pitfalls

| Pitfall | Solution |

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

| Float money | Integer cents in tycoon_economy |

| _process sim step | Physics accumulator tick manager |

| UI every frame | Signal on resource_changed only |

Deep recipes (on demand)

| Topic | Reference / script |

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

| Economy & wallets | economy-design.md + tycoon_economy.gd |

| Sim clock / speed | time-system.md + sim_tick_manager.gd |

| Workers & facilities | entity-management.md + npc_schedule_agent.gd |

| Demand & customers | customer-demand.md |

| Feedback & dashboards | feedback-systems.md |

| Unlock progression | progression-unlocks.md |

| Production graphs / CSV bake | elite-technical-patterns.md + simulation_patterns.gd |

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.