godot-mechanic-revival
Expert blueprint for player mortality loops: progress-index checkpoints, soul graves, ghost/spirit layers, I-frame restitution, world-progress persistence…
от thedivergentai★ 1 019 звёзд на GitHub
Установить godot-mechanic-revival в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Overview
Mortality beyond Game Over: progress-index checkpoints, soul graves, ghost/spirit collision layers, I-frame restitution, world-progress bitmasks, and death analytics (Sekiro / Hades / Souls-like).
Golden Path — Death → Fade → Restore → I-frame → World Persist
MANDATORY script order (read before improvising):
- revival_global_manager.gd — Autoload owns death → delay → respawn; resolve player via group
Player. - revival_death_timer.gd — 1–2s fade / death anim; never snap-respawn.
- revival_state_reset_guard.gd — zero velocity / clear locks before teleport.
- revival_health_restitution.gd — health restore + I-frames.
- revival_checkpoint_persistence.gd — write world-progress bitmask to
user://. Optional layers: revival_soul_grave.gd, revival_ghost_mode.gd, revival_death_analytics.gd.
NEVER Do (Expert Revival Rules)
Lifecycle & State
- NEVER respawn the player with existing velocity — Always zero out
velocityandangular_velocityinrevival_state_reset_guard.gdor the player will fly into a wall upon respawning. - NEVER trust the nearest checkpoint by distance — Always use a 'Progress Index' (
revival_checkpoint_validator.gd). Players in non-linear games may wander back to the start area; don't downgrade their respawn point. - NEVER skip 'Invincibility Frames' (I-frames) — Respawning inside a hazard or near an enemy without a 2s invincibility buffer leads to "Death Loops" and player frustration.
Persistence & Data
- NEVER save checkpoints solely in RAM — If the game crashes, the player loses progress. Use
revival_checkpoint_persistence.gdto write touser://immediately. - NEVER hardcode checkpoint coordinates — Use
Marker3DorArea3Dnodes in the scene. Hardcoded coords break as soon as level geometry changes. - NEVER delete the player node on death —
queue_free()ing the player breaks UI refs and references from enemies. Disable processing, hide the mesh, and 'Revive' the existing instance instead.
UX & Pacing
- NEVER respawn instantly — An instant snap is disorienting. Always use a 1-2s delay with a screen fade or death animation to allow the player to process the failure.
- NEVER reset the entire world on player death — In modern design, opened doors and collected unique items should stay persisted. Use a bitmask in the checkpoint resource to track 'World Progress'.
Available Scripts
MANDATORY: Read the appropriate script before implementing the corresponding pattern.
revival_global_manager.gd
Expert singleton for the global respawn loop. Autoload boot: register as RevivalGlobalManager before level scenes. Resolves the living body with get_tree().get_first_node_in_group("Player") — put the player in group Player (exact name). Owns player_died / player_respawned; levels and UI must not queue_free() the player.
revival_checkpoint_persistence.gd
Resource-based system for saving last checkpoint and world state to disk.
revival_health_restitution.gd
Professional I-frame and health replenishment logic for post-revive stability.
revival_soul_grave.gd
Expert 'Soul Retrieval' mechanic for spawning graves at death coordinates.
revival_checkpoint_validator.gd
Progress-aware shrine/Area3D gate. Export progress_index + checkpoint_id; on enter, call RevivalGlobalManager.set_active_checkpoint(...) only if progress_index >= RevivalGlobalManager.get_progress(). Group the detector / player interact area so backtracking cannot downgrade the active shrine. Pair with revival_checkpoint_persistence.gd for durable writes.
revival_death_timer.gd
Professional respawn delay manager with UI and animation hooks.
revival_ghost_mode.gd
Expert 'Spirit World' transition logic involving collision layer swapping.
revival_state_reset_guard.gd
Essential utility for purging velocity and state locks upon player respawn.
revival_checkpoint_visuals.gd
Material-swapping logic for providing clear 'Active' feedback to players.
revival_auto_save_manager.gd
Automatic save-trigger logic for ensuring checkpoint persistence.
revival_spectral_shader.gdshader
Translucent,
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/migration-notes.md
- scripts/consequence_tracker.gd
- scripts/corpse_run_dropper.gd
- scripts/revival_async_restorer.gd
- scripts/revival_auto_save_manager.gd
- scripts/revival_checkpoint_persistence.gd
- scripts/revival_checkpoint_validator.gd
- scripts/revival_checkpoint_visuals.gd
- scripts/revival_death_analytics.gd
- scripts/revival_death_timer.gd
- scripts/revival_ghost_mode.gd
- scripts/revival_global_manager.gd
- scripts/revival_health_restitution.gd
- scripts/revival_manager.gd
- scripts/revival_soul_grave.gd
- scripts/revival_spectral_shader.gdshader
- scripts/revival_state_reset_guard.gd
FAQ
Что делает скилл godot-mechanic-revival?
Expert blueprint for player mortality loops: progress-index checkpoints, soul graves, ghost/spirit layers, I-frame restitution, world-progress persistence, and death analytics. Use when implementing respawn, shrine checkpoints, corpse-run retrieval, or second-chance mechanics. Keywords revival, respawn, checkpoint, soul grave, ghost mode, I-frames, death analytics, progress index.
Как установить скилл godot-mechanic-revival?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл godot-mechanic-revival запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…