Godot 2d logo

Godot 2d

Community
EL4CTEO
godot-2d

2D games in Godot 4.7 - pixel-art and HD setup, TileMapLayer (cells, terrains, custom data, runtime tiles, physics chunking), Parallax2D, Camera2D (limits, smoothing, shake), y-sort and z-index, 2D lights and normal maps, AnimatedSprite2D, one-way platforms, custom drawing, many-sprite performance. Use for platformers, top-down, tile-based or any 2D scene.

Overview

PublisherEL4CTEO
Repositorygodot-skills
Skill namegodot-2d
Stars
60
Forks
6
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by EL4CTEO on GitHub. Read the source before you install it.

Installation

Install the Godot 2d AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-2d
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/EL4CTEO/godot-skills.git /tmp/godot-skills
mkdir -p .claude/skills
cp -r /tmp/godot-skills/skills/godot-2d .claude/skills/godot-2d
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Godot 2d in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Godot 2d on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Godot 2d is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

2D in Godot 4.7

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.

Project setup

StyleSettings
Pixel artrendering/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-heavystretch 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 (TileMap is deprecated)

  • Use one 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".
  • Code: 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).
  • Per-tile metadata: add custom data layers to the TileSet (is_hazard: bool, cost: float), then read them with get_cell_tile_data(cell).get_custom_data("is_hazard").
  • Autotiling: set up terrain sets in the TileSet, then call set_cells_terrain_connect(cells, terrain_set, terrain) or set_cells_terrain_path.
  • Collision, navigation and occlusion come from the TileSet's physics, navigation and occlusion layers. Physics shapes are merged into chunks (physics_quadrant_size, default 16). Set it to 1 only if you need get_coords_for_body_rid per cell.
  • For changes at runtime, set the cells, then 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().
  • Large worlds: use chunked layers per region and free distant chunks. Thousands of set_cell calls in one frame stall, so spread them over several frames.

Camera2D

  • 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.
  • Screen shake: animate offset (not position) with decaying noise. See the reference.
  • Use one active camera per viewport (make_current()). Zoom uses zoom (Vector2: >1 zooms in).

Parallax2D (replaces ParallaxBackground/Layer)

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.

Drawing order

  • 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.

Lights and atmosphere

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.

Sprites and animation

  • AnimatedSprite2D + SpriteFrames handles frame animation (play(&"run"), animation_finished). Since 4.7, per-animation loop mode uses SpriteFrames.set_animation_loop_mode.
  • Use AnimationPlayer when frames must sync with hitboxes, sounds or method calls. Keyframe the frame property of a Sprite2D with hframes/vframes.
  • Sprite sheets: Sprite2D.region_enabled + region_rect, or AtlasTexture.

Platformer specifics

  • One-way platforms: 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.
  • Coyote time, jump buffering and variable jump height are in the reference.

Many objects

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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Godot 2d AI skill do?

2D games in Godot 4.7 - pixel-art and HD setup, TileMapLayer (cells, terrains, custom data, runtime tiles, physics chunking), Parallax2D, Camera2D (limits, smoothing, shake), y-sort and z-index, 2D lights and normal maps, AnimatedSprite2D, one-way platforms, custom drawing, many-sprite performance. Use for platformers, top-down, tile-based or any 2D scene.

Why use Godot 2d on TypingMind?

Because you install it once and use it with any model. Godot 2d is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Godot 2d in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-2d. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Godot 2d?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Godot 2d?

As many as you like. As long as a model supports skills, you can use Godot 2d with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Godot 2d AI skill free?

Yes. It is published on GitHub by EL4CTEO under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇