Godot 2dのロゴ

Godot 2d

コミュニティ
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.

概要

公開者EL4CTEO
リポジトリgodot-skills
スキル名godot-2d
スター
60
フォーク
6
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    EL4CTEOがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Godot 2d」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-2d
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでGodot 2dを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にGodot 2dを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Godot 2dは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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.

TypingMindでGodot 2dを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Godot 2dはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにGodot 2dをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-2dを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Godot 2dを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Godot 2dで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもGodot 2dを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Godot 2d」は無料ですか?

はい。EL4CTEOがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇