Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

roguelike

БесплатноБез исполняемых скриптовНе проверен

Designs run-based roguelikes and roguelites in any engine: run structure, permadeath, meta-progression, seeded and daily runs, turn order and symmetric field…

gamedev-skillsот gamedev-skills★ 12 656 звёзд на GitHub

Об этом скилле

Roguelike

Owns the run: what a run contains, what survives death, how turns and seeds work, and what a generated floor must guarantee. The generators come from procedural-gen; this skill decides what they must produce and checks it.

When to use

  • A game where each run starts fresh, death ends it, and content is regenerated: a traditional turn-based grid roguelike or a real-time roguelite.
  • Deciding permadeath versus meta-progression, run length and act structure, seeds and daily runs, turn scheduling, or FOV.

When not to use: the algorithm that carves rooms or caves, noise, WFC or loot-table rolling (procedural-gen); deckbuilders such as Slay the Spire or Balatro, even roguelike ones (card-game); persistent-character RPGs (rpg). For a real-time roguelite also load the action genre skill (platformer, fps-shooter) for moment-to-moment control.

Workflow

  1. Settle the type with the user. Traditional (turn-based, grid, strict permadeath, runs of hours, knowledge is the progression) or roguelite (real-time or turn-based, runs of 20-60 minutes, some power or options persist). The Berlin Interpretation (RogueBasin, 2008) lists the traditional traits; use it as a vocabulary, not a checklist.
  2. Lay out the run. 3-4 acts or biomes, each ending in a boss or gate, with a choice between paths or rewards at least every few minutes. Plan a first death around 5-15 minutes in for a new player, and make the death screen show the seed, depth, cause and what was unlocked.
  3. Split state into run state (wiped on death) and profile state (kept). Decide strict permadeath (delete the run save on load) or checkpointed runs, and write the rule down.
  4. Seed everything from one run seed with per-floor, per-purpose sub-seeds (refs §2).
  5. Turn order (turn-based games): energy scheduler (Pattern 1) with a few discrete speeds.
  6. Generate floors with procedural-gen, then gate each floor with the acceptance checks (refs §1) and the spawn budget (refs §4).
  7. Check it. Write and run these as tests in the project's runner and report the numbers:
    • same seed twice gives the same hash for floors 1 to N, even after playing floor 1 differently between the two runs;
    • 500+ seeds per depth pass the acceptance checks, with the reject rate printed;
    • FOV symmetry on random maps (refs §3);
    • speeds 50/100/200 over 1,000 time units give turns in a 1:2:4 ratio;
    • dying deletes or invalidates the run save and leaves the profile file unchanged.

Design rules and numbers

Decision Start here Why
Speeds 50, 100, 200 (slow, normal, fast) odd ratios such as 110 give an unexplained extra enemy move every tenth turn
Action cost 100 energy for move, attack and item use change cost per action (heavy attack 150) rather than adding speeds
FOV radius 6-9 tiles; lit rooms fully visible small radius adds tension and cuts tactics
Out-of-depth spawn about 5% of spawns, up to 3 levels deeper rare spikes stay memorable
Safe start no monster within 6-8 tiles of the arrival point the first turn must not decide the run
Meta-progression new options (characters, items in the pool, starting choices) before flat stat boosts flat boosts make early acts trivial and turn runs into a grind
After the first win a stacking difficulty ladder (Slay the Spire's Ascension, Hades' Heat) gives experts a reason to keep playing
Daily run one seed per UTC day, one attempt, shared leaderboard comparable runs need identical seeds

Pattern 1: energy scheduler

# Pseudocode. Actors gain energy each time unit and act when they have enough.
TURN_COST = 100
def next_actor(actors):
    while True:
        for a in actors:                 # 1) serve anyone already ready, in a stable order
            if a.energy >= TURN_COST:
                a.energy -= TURN_COST    #    or the chosen action's cost
                return a
        for a in actors:                 # 2) nobody ready: advance time for everyone at once
            a.energy += a.speed          #    100 = normal, 200 = hasted, 50 = slowed

Grant energy in its own pass. Adding it inside the loop that returns the first ready actor starves everyone after it: with two speed-100 actors the first acts every time.

Gotchas

  • Same seed, different floor 3 → one RNG shared by generation and combat, so the number of attacks on floor 1 shifts later floors. Derive a sub-seed per floor and per purpose (refs §2).
  • Seeds differ between runs of the same build → seeding from a language hash() of a string (Python randomises it per process) or iterating an unordered set while generating. Hash with a fixed algorithm and iterate in sorted order.
  • One monster never acts → energy granted inside the "find who is ready" loop (Pattern 1).
  • Double moves or input races → a real-time loop pretending to be turn-
Полный SKILL.md на GitHub

Установить roguelike в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/run-seeds-fov.md

FAQ

Что делает скилл roguelike?

Designs run-based roguelikes and roguelites in any engine: run structure, permadeath, meta-progression, seeded and daily runs, turn order and symmetric field of view. Use for NetHack- or Hades-style games, or runs that feel cheap. Pair with `procedural-gen` for dungeon generation and `save-systems` for run vs meta saves. Not for roguelike deckbuilders (`card-game`).

Как установить скилл roguelike?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл roguelike запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить roguelike с