genre-tower-defense

thedivergentai/gd-agentic-skills

Схема tower defense: волны, выбор цели башнями, пути, экономика, лабиринты.

Звёзды975
Форки62
Авторthedivergentai
Обновлёнокт 16 2026

Установка

SKILL.md

Godot 4.7 Baseline

  • Expert patterns in this skill target Godot 4.7+ (stable, 2026-06-18).
  • Consult the Godot 4.7 migration guide when upgrading projects from 4.6.
  • NEVER assume 4.6 defaults (stretch mode, audio area_mask, RichTextLabel percent flags) without checking 4.7 migration notes.

Genre: Tower Defense

Strategic placement, resource management, and escalating difficulty define tower defense.

Core Loop

  1. Prepare: Build/upgrade towers with available currency
  2. Wave: Enemies spawn and traverse path toward goal
  3. Defend: Towers auto-target and damage enemies
  4. Reward: Kills grant currency
  5. Escalate: Waves increase in difficulty/complexity

NEVER Do (Expert Anti-Patterns)

Design & Strategy

  • NEVER make all towers have the same niche; strictly ensure distinct specialties: Aura Slow, Armor Piercing, Anti-Air, Burst Sniper, and Splash Damage.
  • NEVER allow a "Death Spiral" with no exit; strictly provide small comeback bonuses or interest on saved gold to prevent early inevitable failure.
  • NEVER make early waves feel like busywork; strictly provide an "Early Call" bonus to skip wait times and accelerate engagement.
  • NEVER trust client-side economy updates; strictly require the authoritative server to validate currency addition and tower purchases in co-op.

Pathing & Placement

  • NEVER allow the player to "Seal" the exit in mazing games; strictly validate path existence with NavigationServer2D.map_get_path() before finalizing tower placement.
  • NEVER use synchronous bake_navigation_polygon() for mazing; strictly offload to a worker thread to prevent 100ms+ frame hitches during placement.
  • NEVER use global coordinates for grid logic; strictly convert to Vector2i/Vector3i to ensure pixel-perfect tower alignment.

Performance & Systems

  • NEVER call get_overlapping_bodies() every frame; strictly use signals (body_entered/body_exited) to maintain a local target cache.
  • NEVER use _process() for projectile movement if count > 500; strictly use the PhysicsServer2D/3D directly for high-performance bullet-hell tiers.
  • NEVER spawn hundreds of projectiles as full Nodes; strictly use Object Pooling to reuse resources and avoid garbage collection stutters.
  • NEVER use standard Strings for priorities; strictly use StringName (&"first", &"strongest") for O(1) hash comparisons in targeting loops.
  • NEVER ignore the progress property on PathFollow nodes; strictly use it as the O(1) way to identify the target closest to exit.
  • NEVER process tower search logic every frame; strictly throttle ACQUIRE searches (e.g., every 5-10 frames) to save significant CPU cycles.
  • NEVER scale Tower CollisionShape non-uniformly; strictly adjust the radius property of the Shape resource to preserve collision math.
  • NEVER delete enemies immediately on death; strictly use set_deferred("disabled", true) and wait one frame to prevent physics server crashes.
  • NEVER hardcode waves in huge switch statements; strictly use Custom Resources (.tres) for clean balancing and sequence editing.

🛠 Expert Components (scripts/)

Original Expert Patterns

  • wave_manager.gd - Professional wave orchestrator with Resource-based enemy composition and cleanup.
  • tower.gd - Base turret class with FSM state management and firing logic.
  • tower_targeting_system.gd - Autonomous priority logic (First/Last/Strongest/Weakest) for efficient targeting.

Modular Components

  • tower_defense_patterns.gd - Collection of patterns for furthest-target logic and PhysicsServer projectile optimization.

Decision Trees (MANDATORY script reads)

Path style

StyleApproachScripts / APIs
Fixed lanesPath2D / PathFollow2D progresswave_manager.gd, wave_resource_spawner.gd
MazingSeal-check before placeNavigationServer2D.map_get_path / AStarGrid2D (NEVER)
Organic curvesBezier PathFollow progressPrefer PathFollow over per-frame seek

Targeting priority

PrioritySort keyMANDATORY
FIRSTHighest progress (closest to exit)tower_targeting_system.gd
LASTLowest progresssame — LAST implemented
STRONGEST / WEAKESThealth desc / ascsame — WEAKEST implemented

Use signal-cached range Area enter/exit + frame-sliced acquire (acquire_interval_frames). Never get_overlapping_bodies() every frame.

Economy

ConcernRuleScript
Wave compositionResource .tres waveswave_manager.gd
Co-op purchasesServer validates goldtower_defense_patterns.gd
ComebackInterest / early-call bonusDesign-level — not tower FSM

PhysicsServer Projectile Golden Path

When count > ~500:

  1. MANDATORY tower_defense_patterns.gd spawn_fast_bullet (PhysicsServer3D kinematic RIDs).
  2. Pool RIDs; AoE via intersect_shape; defer collision disable on death.
  3. Modest counts: homing_projectile_3d.gd / pooled Nodes OK.

Tower FSM

MANDATORY: tower.gd for idle → acquire → windup → fire. Targeting stays in tower_targeting_system.gd.

Deep recipes (on demand)

TopicReference / script
Waves / towers / pathsarchitecture-overview.md
Projectile lead & targetingkey-mechanics.md
Maze validation & burst searchelite-technical-patterns.md + grid_path_validator.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

  • Navigation introduction (2D) — NavigationRegion2D baking and map queries for mazing TD path validity.
  • Using NavigationAgents — agent path following and avoidance when towers reshape walkable space.
  • NavigationServer2D — map_get_path seal checks before committing tower placement.
  • AStarGrid2D — integer-grid path probes that simulate build cells without a full nav bake.
  • PathFollow2D — progress / progress_ratio for fixed-lane enemies and First/Last targeting.
  • PathFollow3D — 3D track followers used by wave spawners and homing aim references.
  • Using Area2D — signal-driven range caches (body_entered / body_exited) instead of per-frame overlap polls.
  • Physics introduction — layers/masks so tower ranges hit enemies, not other towers or walls.
  • Using servers — PhysicsServer bodies for high-count projectiles without Node overhead.
  • Resources — WaveDefinition .tres data instead of hard-coded spawn switches.
  • Using multiple threads — WorkerThreadPool / Thread patterns for async navigation rebakes during placement.
  • Using TileMaps — TileMapLayer grids for build cells, paths, and placement snapping.

Related Skills

Prerequisites

  • godot-project-foundations — project settings, layers, and scene structure before wave/tower wiring.
  • godot-navigation-pathfinding — NavigationServer bake, agents, and path queries that mazing TD depends on.
  • godot-tilemap-mastery — TileMapLayer/TileSet grids for buildable cells and lane painting.

Complements

  • godot-2d-physics — Area2D range, layers, and PhysicsServer2D projectile patterns for dense waves.
  • godot-state-machine-advanced — StringName tower FSM states (Idle/Acquire/Attack/Cooldown).
  • godot-economy-system — kill rewards, interest, and early-call income without death spirals.
  • godot-combat-system — damage types, armor pierce, splash, and projectile hit resolution.
  • godot-resource-data-patterns — typed Wave/Tower Resources and duplicate(true) for balance edits.
  • godot-game-loop-waves — prepare/defend/reward phase orchestration around the spawner.
  • godot-signal-architecture — wave_started / enemy_died / currency_changed buses without frame polling.
  • godot-performance-optimization — pooling, server bodies, and throttled acquire searches under heavy projectile counts.
  • godot-monte-carlo-balancer — sample wave DPS, leak rates, and economy bands before shipping difficulty curves.

Downstream / consumers

  • godot-genre-rts — base defense and unit-placement loops that reuse path validation and economy pressure.
  • godot-multiplayer-networking — authoritative purchase validation and unreliable minion sync for co-op TD.

Master

  • godot-master — library router and mirrored module entry for cross-skill discovery.

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: genre-tower-defense](https://darkplay.ru/ai/skills/thedivergentai-gd-agentic-skills-genre-tower-defense)

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

ruflo-aidefenceruvnet · Сканирование безопасности ИИ, обнаружение PII, защита от prompt injection и адаптивное…
240 комп.
gamedevgamedev-skills · Всё вместе: мастер-роутер и все 66 навыков геймдева по движкам, жанрам и процессам.
134 комп.
genresgamedev-skills · Шаблоны жанров: платформер, рогалик, RPG, FPS, tower defense, карты, визуальная новелла.
134 комп.
ariaanthropics · Пошаговый workflow релиза музыки для артистов и лейблов: от идеи до публикации и…
38 комп.
claude-ghost-writeranthropics · Плагин Claude Code для написания книг: онбординг, структурированная работа над…
38 комп.
claude-musicanthropics · Фоновая музыка разных жанров прямо в терминале для сессий Claude Code, без настройки.
38 комп.
code-musicanthropics · Фоновая музыка в терминале во время работы ИИ-агентов: lo-fi, джаз, эмбиент и ИИ-диджей.
38 комп.
djclaudeanthropics · Генерация музыки в Claude Code через Google Lyria 3: клипы и песни по текстовому…
38 комп.
guardanthropics · Хуки PreToolUse блокируют опасные shell-, git- и credential-команды до запуска.
38 комп.
laravel-api-tool-kitanthropics · Правила и рабочие процессы для REST API на Laravel с essa/api-tool-kit. Учит…
38 комп.

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8