scenario-godot-2d
Use when building a 2D game in Godot 4.7: make a platformer or top-down controller that feels right (coyote time, jump buffer, jump height), TileMapLayer and…
от scenario-labs★ 4 422 звезды на GitHub
Установить scenario-godot-2d в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Godot 2D (developer and artist)
Target: Godot 4.7.2 standard build, macOS, run headless or in small windows through the scenario-godot-expert toolkit.
Expert level in 2D means feel and pixels are measured, not eyeballed: a jump has a height in tiles
and a coyote window in ticks, a camera has a lag in pixels, a pixel-art screen has an integer factor
and a fringe count. The agent builds tiles, controllers and cameras in code, proves them with
deterministic physics runs and frame read-backs, and only then calls them done. If a sibling skill
named here is missing from your available skills, load it with skill_get (Scenario MCP) or ask the
user to install it (https://github.com/scenario-labs/skills#install); unattended, proceed from tool
schemas and flag the gap.
REQUIRED BACKGROUND: scenario-godot-expert (channels, review loop, toolkit gd_env, gd_run,
gd_review, 4.x traps).
Stance (the expert delta)
- Feel is numbers you can test. Solve gravity and take-off speed from jump height and time to apex, and make the height a multiple of the tile size (The Shaggy Dev, Bsy8pknHc0M [00:04:13]). Godot then loses about v·dt/2 of it: 53.5 px for a 56 px design at 60 ticks, measured. The kit adds g·dt/2 and lands 56.25 px [added].
- Forgive in time and space. Coyote time, jump buffer, corner correction and a jump cut are each a few lines (The Shaggy Dev). Count windows in whole ticks: float timers gave 5 coyote moves for 0.1 s instead of 6 [added, measured].
- Top-down:
move_toward, not length arithmetic. Additive acceleration needslimit_length; subtracting decel from the length goes negative and vibrates (55 sign flips in 60 ticks, measured). Steering never arrives without a minimum step (BT Plays Games, m71-kZgYXlw [00:07:30], [00:14:08]). - A camera is designed, not parented. Lookahead, ignore jumps and re-baseline on landing,
damping, shake with an off switch (Mark Brown, GMTK). Damping lags by speed/damping and eats
lookahead: 32 px of lookahead gave a 16 px lead at 120 px/s, so state both numbers. Zoom with
Camera2D.zoom(2 zooms in), never by resizing the viewport (DevWorm, RlSpjIb7TLo [00:08:14]). - Jitter is a tick-rate problem. At 144 Hz with 60 physics ticks, physics interpolation gave
the ideal 0.289 px RMS for every camera setup. Without it the background stepped 0, 1, 2 px, and
Idle camera smoothing made the player wobble 3 px.
Camera2D.process_callbackdefaults to Idle: with interpolation off, setCAMERA2D_PROCESS_PHYSICSyourself (Chris' Tutorials, 43c-Sm5GMbc [00:28:37]); with it on, Godot forces Physics. - Pixel-perfect is a stretch decision.
viewport+ integer locks everything to art pixels, lights included. 640x360 (the docs' base) and 320x180 both integer-scale to 720p, 1080p, 1440p and 4K with no bars, measured; pick by native art size. Ship Exclusive Fullscreen (window mode 4): a 1 px strip drops 640x360 on 4K from 6x to 5x, measured (docs, Multiple resolutions).canvas_itemsgives smooth rotation and sub-pixel motion (Heartbeast prefers it). For locked art with a gliding camera, render a SubViewport at base + 2 px and shift the upscaled image by the remainder (Barry's Dev Hell). - Tiles are data you can audit. One TileMapLayer per layer, an external TileSet, terrain mode matched to the tile count, and peering bits checked cell by cell. Paint the land, never the water side (DevWorm, ZutpG0_CYrQ [00:32:47]); in the GUI, paint bits outer ring first, then the center cross (bluuDevGames, CLcFC6ku240 [00:12:28]). Pick a dual grid (16 tiles, display layer offset half a tile) when every corner must round the same (jess::codes, jEWFSv3ivTg [00:02:26]). Then look at a sampler capture, because index checks pass on wrong art [added].
- Generated art is checked before import. Find the pixel scale and grid phase, snap if off-grid, register every clip on its feet line, and check the key-color fringe under linear filtering [added, with scenario-sprite-pipeline].
- Physics layers are named and single. One collision layer per object, many masks; name layers
by what the checker needs ("bombable"), in
layer_names/2d_physics/layer_N(Bogner, HFBNd4Z4vXM [00:10:58] to [00:14:17]). A new body starts on layer 1 and mask 1: adding a layer without clearing 1 gives 2 bits, measured.
Establish first
| Question | Why it changes the plan | Default |
|---|---|---|
| Pixel art or smooth 2D? | stretch mode, filter |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/critique.md
- references/expert-notes.md
- references/gui-paths.md
- references/procedures.md
- references/sources.md
- scripts/agentkit/2d/audit_2d.gd
- scripts/agentkit/2d/dual_grid.gd
- scripts/agentkit/2d/follow_camera_2d.gd
- scripts/agentkit/2d/parallax_tools.gd
- scripts/agentkit/2d/pixel_light.gdshader
- scripts/agentkit/2d/pixel_viewport.gd
- scripts/agentkit/2d/platformer_body.gd
- scripts/agentkit/2d/platformer_tuning.gd
- scripts/agentkit/2d/sprite_frames_builder.gd
- scripts/agentkit/2d/terrain_tools.gd
- scripts/agentkit/2d/tileset_builder.gd
- scripts/agentkit/2d/topdown_body.gd
- scripts/gd_2d.py
FAQ
Что делает скилл scenario-godot-2d?
Use when building a 2D game in Godot 4.7: make a platformer or top-down controller that feels right (coyote time, jump buffer, jump height), TileMapLayer and TileSet in code, terrains and autotiles that pick wrong tiles, a dual grid, a camera that jitters or stutters, pixel art that looks blurry or uneven, stretch and integer scaling, 2D lights and shadows, y-sort order wrong, parallax gaps, or importing AI-generated sprites and tilesets from Scenario.
Как установить скилл scenario-godot-2d?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл scenario-godot-2d запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…