godot-game-loop-collection
БесплатноЗапускает вложенные скриптыНе проверенExpert collection-loop systems for collectible IDs, scavenger hunts, completion archives, nearest-item compass UI, hidden spawners, and persistent find-all-X…
от thedivergentai★ 1 019 звёзд на GitHubОб этом скилле
NEVER Do (collection landmines)
- NEVER reuse or omit stable collectible IDs — Duplicate IDs double-count or overwrite; missing IDs break completion % and saves.
- NEVER count the same Area overlap twice —
body_enteredcan re-fire on re-entry; gate with "already collected" / one-shot disable of monitoring. - NEVER persist NodePaths as the identity of collectibles — Paths break on scene moves; save IDs (StringName / int), not
get_path(). - NEVER soft-lock the last item — If compass / spawn logic depends on "remaining > 1", the final pickup becomes unfindable.
- NEVER store hunt progress only in scene-local nodes — Level reload wipes progress; keep collected set in collection_manager.gd + save.
- NEVER
queue_free()collectibles with zero juice and no ID commit — Commit ID first (signal), then VFX, then free. - NEVER scale collectible collision shapes non-uniformly — Breaks overlap math; edit shape resources.
- NEVER hardcode spawn positions in code — Use Marker3D / designer points with hidden_item_spawner.gd.
- NEVER drive collection truth from UI silhouettes — Archive UI mirrors manager state; manager is authoritative.
- NEVER load massive levels synchronously on hunt complete — use threaded
ResourceLoader(see references). - NEVER manipulate SceneTree from worker threads —
call_deferredonly.
Golden Path (MANDATORY)
- collectible_item.gd —
item_id(unique) +collection_id(hunt), one-shot Area pickup - collection_manager.gd — authoritative collected-ID set via
register_item()+get_remaining_ids() - collection_compass.gd — nearest node whose
item_idis still in manager remainders - Persist collected IDs via godot-save-load-systems
Optional: hidden_item_spawner.gd for randomized hunts; collection_loop_patterns.gd for advanced loop/MainLoop helpers.
Available Scripts (full set)
- collectible_item.gd — MANDATORY pickup actor; export stable
item_idper instance and huntcollection_id - collection_manager.gd — MANDATORY progress brain;
start_collection(id, item_ids)thenregister_item(id, item_id) - collection_compass.gd — MANDATORY when guiding players; wire
collection_managerand queryget_remaining_ids() - hidden_item_spawner.gd — designer markers / chance spawns (Do NOT Load for fixed placed-only hunts)
- collection_loop_patterns.gd — advanced loop patterns (Do NOT Load for simple ID hunts)
Expert Collection Patterns
1. Persistent Collection (Save/Load)
Serialize the manager’s collected item_id set per collection_id (PackedStringArray via get_collected_ids() / restore_collected_ids()), not node paths. Reload: manager restores set → collectibles self-disable if item_id already owned.
2. Collection Archive UI (Silhouettes)
Grid of icons: uncollected modulate silhouette; reveal when manager signals that ID. UI never invents collected state.
MANDATORY for threaded loads, MainLoop helpers, and archive/save depth: collection-loop-advanced.md. Do NOT Load for simple fixed-ID scavenger hunts.
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
- Area3D —
body_enteredpickup volumes for 3D collectibles and layer/mask setup so only the player triggers collection. - Using Area2D — 2D overlap patterns when adapting the same collectible loop to Area2D/Sprite2D radar UIs.
- Groups — register collectibles and broadcast resets via
get_nodes_in_group/call_groupwithout hard-coded node paths. - Idle and physics processing — keep collision-driven progress in
_physics_process/ physics frames; throttle compass/UI work in_process. - SceneTree — pause flags, groups,
physics_frame, andcurrent_sceneownership used by collection state transitions. - Change scenes manually — deferr
Установить godot-game-loop-collection в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл godot-game-loop-collection?
Expert collection-loop systems for collectible IDs, scavenger hunts, completion archives, nearest-item compass UI, hidden spawners, and persistent find-all-X progress. Use when implementing collectibles, scavenger hunts, completion% archives, or compass-guided item hunts. Keywords: collectible_id, scavenger_hunt, collection_manager, collection_compass, completion_archive, hidden_item_spawner, find_all, collectible_item.
Как установить скилл godot-game-loop-collection?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл godot-game-loop-collection запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic