मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग6.6k · #13814

tower-defense

यह क्या करती है

यह स्किल टावर डिफ़ेंस गेम बनाने में मार्गदर्शन देती है, जहाँ दुश्मन रास्ते पर चलते हैं और खिलाड़ी उन्हें रोकने के लिए टावर लगाता है। यह वेव डिफ़ेंस गेम बनाने और उनकी वेव व अर्थव्यवस्था संतुलित करने वाले डेवलपर्स के लिए है।

कब इस्तेमाल करें

  • ✓जब आप ऐसा टावर डिफ़ेंस गेम बना रहे हों जिसमें टावर रास्ते पर चलते दुश्मनों पर हमला करें।
  • ✓जब आपको वेव की बनावट और गति डिज़ाइन करनी हो।
  • ✓जब आप चाहें कि सोने की अर्थव्यवस्था और टावर अपग्रेड संतुलित लगें।

Skill का लिंक

https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/main/skills/genres/tower-defense/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/main/skills/genres/tower-defense/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मैं एक टावर डिफ़ेंस गेम बना रहा हूँ। क्या आप रास्ते पर चलते दुश्मन, अपने-आप गोली चलाने वाले टावर और एक वेव स्पॉनर सेट कर सकते हैं?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट दुश्मनों को लेन या भूलभुलैया रास्ते पर चलाता है, समय के हिसाब से वेव बनाता है जिनमें बढ़ते दुश्मन प्रकार हों, और टावर ऑटो-टार्गेट करके फ़ायर करते हैं। मारे गए दुश्मनों से सोना मिलता है, जिससे टावर लगाने और अपग्रेड करने का खर्च चलता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Tower Defense

A playbook for tower defense — enemy pathing, wave spawning, tower targeting, and the economy that ties them together. This is a compositional skill: it orchestrates pathing, AI, and UI into a TD loop. It does not re-teach pathfinding; it defines the systems and the balance levers (DPS vs. HP vs. income) that decide whether a TD is tense or trivial.

When to use

  • Use when building a game where the player places towers that automatically attack waves of enemies following a path, spends earned currency to expand/upgrade, and loses if too many enemies leak through.
  • Use when designing wave composition/pacing, tower targeting priorities, or the gold economy.

When not to use: the player directly controls a shooter → fps-shooter. Free-form base building with needs → survival-crafting. For the pathfinding algorithm itself, use game-ai.

Core loop

Prepare (place/upgrade towers with current gold) → start the wave → enemies path toward the goal while towers auto-fire → earn gold from kills → survive the wave → repeat against a harder one. The tension is a planning puzzle: is my current DPS enough for what's coming, and can I afford the answer?

Must-have systems

  1. Enemy path — waypoint lanes, or grid + pathfinding for maze TD (refs).
  2. Wave spawner — timed, scripted sequences of enemy types with per-wave scaling.
  3. Towers — range, fire rate, damage, projectile/hitscan, splash; placement validity.
  4. Targeting — per-tower priority (first/last/closest/strongest/weakest) (refs).
  5. Economy — gold from kills + wave bonuses; tower/upgrade costs; sell refund.
  6. Lives / leak — enemies reaching the goal cost lives; 0 = game over.
  7. Wave/prep UI — lives, gold, next-wave preview, start-next-wave control.

Design knobs

Knob Effect Notes
Enemy HP growth/wave upgrade pressure Geometric ~1.1–1.2× (refs).
Income vs. HP curves difficulty Player should almost afford each wave.
Tower DPS / range / cost tower identity Cheap+wide vs. expensive+tall.
Targeting priority optimal placement Changes play more than raw stats.
Enemy variety counters one-build wins Fast / armored / flying / swarm / boss.
Leak penalty stakes Cost lives and lost bounty.
Upgrade vs. build economy strategy depth Diminishing upgrade returns.
Wave pacing tension curve Spike → breather → spike, not monotonic.

Patterns

1. Wave spawner (timed, data-driven)

# Pseudocode. A wave is data: a list of (enemy_type, count, spacing). Spawn over time.
wave = [ ("grunt", 10, 0.5), ("runner", 5, 0.3), ("tank", 2, 1.0) ]

def run_wave(wave):
    for enemy_type, count, spacing in wave:
        for _ in range(count):
            spawn_enemy(enemy_type, at=path[0])   # enter at the path start
            wait(spacing)                          # seconds between spawns (use a timer/coroutine)
    # wave clears when all spawned enemies are dead or have leaked

2. Tower targeting (filter to range, then pick by priority)

# Pseudocode. "First" (furthest along path) is the standard default for stopping leaks.
def acquire_target(tower, enemies, mode="first"):
    in_range = [e for e in enemies if distance(tower.pos, e.pos) <= tower.range]
    if not in_range: return None
    if mode == "first":    return max(in_range, key=lambda e: e.progress)   # furthest along path (stop leaks)
    if mode == "last":     return min(in_range, key=lambda e: e.progress)   # least progress (guard the entrance)
    if mode == "closest":  return min(in_range, key=lambda e: distance(tower.pos, e.pos))
    if mode == "strongest":return max(in_range, key=lambda e: e.hp)         # burn down tanks first
    if mode == "weakest":  return min(in_range, key=lambda e: e.hp)         # secure kills / last-hit bounty
    return in_range[0]

3. "Can this lane hold?" sanity check (DPS vs. HP)

# Pseudocode. One tower's damage to one enemy crossing its range.
tower_dps     = tower.damage * tower.fire_rate
time_in_range = tower.range_coverage_length / enemy.speed
अक्सर पूछे जाने वाले सवाल

रास्ता कैसे काम करता है?

स्किल वेपॉइंट लेन, या भूलभुलैया शैली के खेल के लिए पाथफ़ाइंडिंग वाला ग्रिड कवर करती है।

टावर डिफ़ेंस गेम में तनाव कैसे आता है?

स्किल कहती है कि तनाव इस योजना से आता है कि मौजूदा नुकसान अगली वेव के लिए काफ़ी होगा या नहीं, और क्या आप उसका खर्च उठा सकते हैं।

क्या यह पाथफ़ाइंडिंग एल्गोरिद्म खुद कवर करती है?

नहीं। पाथफ़ाइंडिंग एल्गोरिद्म गेम AI स्किल में कवर है, जिसका यह स्किल इस्तेमाल करती है।

जानकारी

लेखक का मूल विवरण

Build a tower defense: enemies pathing along lanes, wave spawning, towers that auto-target and fire, an economy, and lives. Use for a tower-defense/wave-defense game, or balancing waves and economy.

repo: gamedev-skills/awesome-gamedev-agent-skills

लोकप्रियता

GitHub स्टार
6.6k
रैंकिंग में स्थान
#13814
लाइसेंस
Apache-2.0
अपडेट की गई
28/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

router

6.6k

यह आपके एजेंट को इंजन और काम के प्रकार को पहचानकर किसी अनुरोध के लिए सही गेम डेवलपमेंट स्किल चुनने में मदद करती है।

कोडिंगसामान्य कोडिंग

ai-behavior-trees-utility-ai

6.6k

यह आपके एजेंट को दुश्मनों और किरदारों के लिए बिहेवियर ट्री और यूटिलिटी AI सिस्टम बनाने में मदद करती है, जो प्राथमिकता और स्कोर से कार्रवाई चुनें।

कोडिंगसामान्य कोडिंग

audio-design

6.6k

आपके एजेंट को गेम ऑडियो मिक्सिंग सिखाती है: बस, डेसिबल में वॉल्यूम, डायलॉग में म्यूज़िक धीमा करना और साउंड इफ़ेक्ट की विविधता।

वीडियो और ऑडियोऑडियो और आवाज़

camera-systems

6.6k

यह आपके एजेंट को ऐसे गेम कैमरा बनाने में मदद करती है जो सहजता से पीछा करें, लेवल के भीतर रहें, और 3D में घूम या देख सकें।

कोडिंगसामान्य कोडिंग

मिलती-जुलती skills