/godot-agent-skills:godot-2dfrom godot-agent-skills
Provides setup and usage patterns for 2D games in Godot 4.7, covering pixel-art/HD configuration, TileMapLayer, Camera2D, parallax, lighting, and sprite performance.
Ships in godot-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Movement physics lives in godot-physics, UI in godot-ui, shaders in godot-shaders-vfx. Look up any API with ../godot-core/scripts/api_lookup.py.
| Style | Settings |
|---|---|
| Pixel art | rendering/textures/canvas_textures/default_texture_filter = 0 (Nearest); display/window/stretch/mode = "viewport", scale_mode = "integer", aspect keep/expand; base size small (for example 320×180 or 640×360); optionally rendering/2d/snap/snap_2d_transforms_to_pixel = true |
| HD 2D / UI-heavy | stretch mode canvas_items (the 4.7 default for new projects), aspect expand, base size 1920×1080 or 1280×720, Linear filter |
| Never mix texel sizes in pixel-art games. Scale sprites by whole numbers only. |
TileMapLayer node per layer (ground, walls, decoration), all sharing one TileSet resource. Old TileMap nodes convert through the TileMap panel's toolbox: "Extract TileMap layers".set_cell(coords, source_id, atlas_coords, alternative), erase_cell, get_cell_source_id (−1 means empty), get_cell_atlas_coords, get_used_cells(), get_used_cells_by_id(), local_to_map(to_local(global_pos)), map_to_local(cell).is_hazard: bool, cost: float), then read them with get_cell_tile_data(cell).get_custom_data("is_hazard").set_cells_terrain_connect(cells, terrain_set, terrain) or set_cells_terrain_path.physics_quadrant_size, default 16). Set it to 1 only if you need get_coords_for_body_rid per cell.update_internals() if you need them immediately. Per-cell runtime variations use _use_tile_data_runtime_update and _tile_data_runtime_update with notify_runtime_tile_data_update().set_cell calls in one frame stall, so spread them over several frames.position_smoothing_enabled and position_smoothing_speed smooth the follow. Limits are limit_left/top/right/bottom (toggle them all with limit_enabled). drag_*_enabled adds a dead zone.offset (not position) with decaying noise. See the reference.make_current()). Zoom uses zoom (Vector2: >1 zooms in).Add Parallax2D nodes anywhere, with a Sprite2D or TextureRect as child. Set scroll_scale (0 = static, 1 = moves with the world), repeat_size = texture size for infinite tiling, repeat_times for zoomed-out cameras and autoscroll for clouds. It follows the active Camera2D automatically.
y_sort_enabled on the parent sorts its children by Y (top-down games). Each child's sort origin is its own origin, so put sprite feet at y=0.z_index (relative to the parent unless z_as_relative = false) works across siblings. CanvasLayer handles HUD and backgrounds independently of the camera.CanvasGroup renders a subtree as one unit, which lets outline shaders and transparency apply to a whole character.PointLight2D (textured) and DirectionalLight2D, plus LightOccluder2D for shadows (TileSets can carry occluders). CanvasModulate darkens the scene. Normal and specular maps go through a CanvasTexture used as the sprite texture. Light2D is per-pixel, so keep lights overlapping any given sprite in the single digits on mobile.
AnimatedSprite2D + SpriteFrames handles frame animation (play(&"run"), animation_finished). Since 4.7, per-animation loop mode uses SpriteFrames.set_animation_loop_mode.AnimationPlayer when frames must sync with hitboxes, sounds or method calls. Keyframe the frame property of a Sprite2D with hframes/vframes.Sprite2D.region_enabled + region_rect, or AtlasTexture.CollisionShape2D.one_way_collision = true. 4.7 adds one_way_collision_direction (default Vector2(0, 1)). Drop through by briefly disabling the player's mask bit or raising the position.CharacterBody2D defaults to MOTION_MODE_GROUNDED for platformers. Use MOTION_MODE_FLOATING for top-down.Thousands of bullets or particles: MultiMeshInstance2D or GPU particles, or skip nodes entirely with RenderingServer canvas items and PhysicsServer2D. VisibleOnScreenEnabler2D pauses off-screen enemies. See godot-performance.
Patterns (platformer feel, top-down movement, camera shake, tile queries, custom draw), compiled by the tests: references/patterns.md
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub el4cteo/godot-skills --plugin godot-agent-skills27 skills in this plugin
/godot-3d-gameplayBuilding 3D games in Godot 4.7 - third-person and orbit cameras (SpringArm3D), camera-relative movement, lock-on, top-down/RTS/isometric cameras, GridMap + MeshLibrary levels, CSG blockout and baking, modular kit import hints, Path3D rails, interactables, spawners, world-space UI, large worlds and LOD. Use for 3D player controllers, cameras or level building./godot-3d-rendering3D look in Godot 4.7 - renderer choice (Forward+/Mobile/Compatibility matrix), Environment (AgX, glow, fog, SSAO/SSR/SDFGI), lights incl. AreaLight3D, GI (SDFGI, VoxelGI, LightmapGI), HDR output, materials, glTF/Blender import suffixes, LOD and occlusion culling. Use for 3D scenes, lighting, materials, model import or visual quality./godot-addonsFinding, vetting, installing and maintaining Godot 4.7 addons - the in-editor Asset Store, editor plugins vs GDExtensions vs C# addons, compatibility and platform-binary checks, enabling plugins, versioning addons in git, optional dependencies, and a curated 4.7 list (LimboAI, Beehave, Dialogue Manager, Phantom Camera, Terrain3D, GodotSteam, billing, Mod Loader). Use when adding or fixing plugins./godot-animationAnimation in Godot 4.7 - AnimationPlayer and libraries, AnimationTree (state machines, blend spaces with sync_mode, one-shots, conditions), root motion, method/audio tracks, Tween recipes incl. tween_await (4.7), skeletons, the 4.6 IK framework (TwoBoneIK3D, FABRIK3D, CCDIK3D, SplineIK3D), LookAt/bone constraints, procedural animation. Use for character animation, cutscenes, UI motion or IK./godot-architectureStructure Godot 4.7 projects that scale - feature-based folders, scene composition and components, when to use autoloads, event bus, custom Resources as data, state machines, scene switching and loading screens, save/load (safe formats), groups and dependency injection, mixed GDScript + C# projects. Use when starting a project, adding a system, or refactoring Godot code./godot-audioAudio in Godot 4.7 - bus layout and effects, volume in linear vs dB, SFX players with polyphony and randomization, 3D positional audio (attenuation, doppler, Area reverb buses), adaptive music with AudioStreamInteractive/Synchronized/Playlist, procedural audio and capture, import/loop settings, web playback type. Use for sound effects, music systems, mixers or audio settings menus.Other plugins' skills for the same job