mcpField
D
defold-examples-fetch

defold-examples-fetch

github.com/indiesoftby開発10450 回インストール27 週間前に更新
リポジトリ

defold-examples-fetch について

Defold 開発者向けに、実装テーマと Markdown 形式のサンプルを結び付けるリファレンススキルです。カテゴリ別のリンクから各サンプルを取得できます。

主な機能

  1. 01開発テーマ別のサンプル一覧
  2. 02Markdown サンプルへのリンク
  3. 03アニメーション、物理、GUI などを収録

活用シーン

  1. 01Defold の機能に対応するサンプル探し
  2. 02ゲーム開発タスクの実装例の取得

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/indiesoftby/defold-agent-config --skill defold-examples-fetch

インストール後、Claude Code で/defold-examples-fetchを入力して読み込まれたか確認します。

詳細

Defold サンプルリファレンス

以下のリンクからサンプルコードを取得してください(URL はプレーンな Markdown ファイルを指しています)。

アニメーション

サンプルURL
アニメーションステートマシンhttps://defold.com/llms/examples/animation/animation_states.md
カーソルアニメーションhttps://defold.com/llms/examples/animation/cursor.md
イージング関数(トゥイーン)https://defold.com/llms/examples/animation/easing.md
オイラー回転https://defold.com/llms/examples/animation/euler_rotation.md
フリップブックアニメーションhttps://defold.com/llms/examples/animation/flipbook.md
Spine アニメーションhttps://defold.com/llms/examples/animation/spine.md
スピナーアニメーションhttps://defold.com/llms/examples/animation/spinner.md
トゥイーンアニメーションhttps://defold.com/llms/examples/animation/basic_tween.md
トゥイーンアニメーションの連鎖https://defold.com/llms/examples/animation/chained_tween.md

基本

サンプルURL
メッセージパッシングhttps://defold.com/llms/examples/basics/message_passing.md
親子関係https://defold.com/llms/examples/basics/parent_child.md
乱数https://defold.com/llms/examples/basics/random_numbers.md
Z オーダーhttps://defold.com/llms/examples/basics/z_order.md

コレクション

サンプルURL
プロキシhttps://defold.com/llms/examples/collection/proxy.md
スプラッシュhttps://defold.com/llms/examples/collection/splash.md
タイムステップhttps://defold.com/llms/examples/collection/timestep.md

デバッグ

サンプルURL
物理デバッグhttps://defold.com/llms/examples/debug/physics.md
ビジュアルプロファイラーhttps://defold.com/llms/examples/debug/profile.md

ファクトリー

サンプルURL
動的ファクトリーhttps://defold.com/llms/examples/factory/dynamic.md
弾の発射https://defold.com/llms/examples/factory/bullets.md
中央管理による敵の生成https://defold.com/llms/examples/factory/spawn_manager.md
スクリプトプロパティによる敵の生成https://defold.com/llms/examples/factory/spawn_properties.md
ゲームオブジェクトの生成https://defold.com/llms/examples/factory/basic.md

ファイル

サンプルURL
JSON データの読み込みhttps://defold.com/llms/examples/file/json_load.md
保存と読み込みhttps://defold.com/llms/examples/file/sys_save_load.md

GUI

サンプルURL
ボタンhttps://defold.com/llms/examples/gui/button.md
ドラッグhttps://defold.com/llms/examples/gui/drag.md
GUI フォントリソースの取得と設定https://defold.com/llms/examples/gui/get_set_font.md
GUI マテリアルリソースの取得と設定https://defold.com/llms/examples/gui/get_set_material.md
GUI テクスチャリソースの取得と設定https://defold.com/llms/examples/gui/get_set_texture.md
GUI の色https://defold.com/llms/examples/gui/color.md
GUI の進捗インジケーターhttps://defold.com/llms/examples/gui/progress.md
ヘルスバーhttps://defold.com/llms/examples/gui/healthbar.md
レイアウトhttps://defold.com/llms/examples/gui/layouts.md
テクスチャの読み込みhttps://defold.com/llms/examples/gui/load_texture.md
ポインターオーバーhttps://defold.com/llms/examples/gui/pointer_over.md
スライス 9https://defold.com/llms/examples/gui/slice9.md
ステンシルhttps://defold.com/llms/examples/gui/stencil.md

入力

サンプルURL
8 方向移動https://defold.com/llms/examples/input/move.md
押下時間https://defold.com/llms/examples/input/down_duration.md
エンティティの選択https://defold.com/llms/examples/input/entity_picking.md
マウスイベントとタッチイベントhttps://defold.com/llms/examples/input/mouse_and_touch.md
テキスト入力https://defold.com/llms/examples/input/text.md

マテリアル

例URL
カスタムスプライトhttps://defold.com/llms/examples/material/custom_sprite.md
ノイズシェーダーhttps://defold.com/llms/examples/material/noise.md
繰り返し背景https://defold.com/llms/examples/material/repeating_background.md
スクリーンスペースhttps://defold.com/llms/examples/material/screenspace.md
スプライトのローカル UVhttps://defold.com/llms/examples/material/sprite_local_uv.md
スプライトの頂点カラー属性https://defold.com/llms/examples/material/vertexcolor.md
ライティングなしhttps://defold.com/llms/examples/material/unlit.md
UV グラデーションhttps://defold.com/llms/examples/material/uvgradient.md

メッシュ

例URL
メッシュ(三角形)https://defold.com/llms/examples/mesh/triangle.md
テクスチャ付きメッシュhttps://defold.com/llms/examples/mesh/textured.md

モデル

例URL
AABBhttps://defold.com/llms/examples/model/aabb.md
キャラクターhttps://defold.com/llms/examples/model/character.md
キューブマップ反射https://defold.com/llms/examples/model/cubemap.md
GLTFhttps://defold.com/llms/examples/model/gltf.md
GPU スキニングhttps://defold.com/llms/examples/model/skinning.md
モデルの頂点カラーhttps://defold.com/llms/examples/model/modelvertexcolor.md
スカイボックスhttps://defold.com/llms/examples/model/skybox.md

移動

例URL
一人称 3D カメラと移動https://defold.com/llms/examples/movement/3d_fps.md
入力に追従https://defold.com/llms/examples/movement/follow.md
注視https://defold.com/llms/examples/movement/look_at.md
視点の回転https://defold.com/llms/examples/movement/look_rotation.md
前方へ移動https://defold.com/llms/examples/movement/move_forward.md
ターゲットへ移動https://defold.com/llms/examples/movement/move_to.md
移動速度https://defold.com/llms/examples/movement/movement_speed.md
ゲームオブジェクトの移動https://defold.com/llms/examples/movement/simple_move.md

パーティクル

例URL
モディファイアーhttps://defold.com/llms/examples/particles/modifiers.md
パーティクルエフェクトhttps://defold.com/llms/examples/particles/particlefx.md
パーティクルエフェクトの放出空間https://defold.com/llms/examples/particles/particlefx_emission_space.md
紙吹雪https://defold.com/llms/examples/particles/confetti.md
炎と煙https://defold.com/llms/examples/particles/fire_and_smoke.md
花火https://defold.com/llms/examples/particles/fireworks.md

物理演算

例URL
動的物理演算https://defold.com/llms/examples/physics/dynamic.md
ヒンジジョイント物理演算https://defold.com/llms/examples/physics/hinge_joint.md
キネマティック物理演算https://defold.com/llms/examples/physics/kinematic.md
ノックバックhttps://defold.com/llms/examples/physics/knockback.md
振り子の物理演算https://defold.com/llms/examples/physics/pendulum.md
レイキャストhttps://defold.com/llms/examples/physics/raycast.md
トリガーhttps://defold.com/llms/examples/physics/trigger.md

レンダリング

例URL
カメラhttps://defold.com/llms/examples/render/camera.md
オービットカメラhttps://defold.com/llms/examples/render/orbit_camera.md
ポストプロセスhttps://defold.com/llms/examples/render/post_processing.md
スクリーン座標からワールド座標へhttps://defold.com/llms/examples/render/screen_to_world.md
ワールド座標からスクリーン座標へhttps://defold.com/llms/examples/render/world_to_screen.md

リソース

例URL
アトラスの作成https://defold.com/llms/examples/resource/create_atlas.md
アトラスの変更https://defold.com/llms/examples/resource/modify_atlas.md

サウンド

例URL
フェードイン/フェードアウトhttps://defold.com/llms/examples/sound/fade_in_out.md
サウンドの取得と設定https://defold.com/llms/examples/sound/get_set_sound.md
音楽https://defold.com/llms/examples/sound/music.md
パンニングhttps://defold.com/llms/examples/sound/panning.md

スプライト

例URL
バニーマークhttps://defold.com/llms/examples/sprite/bunnymark.md
スプライト画像の変更https://defold.com/llms/examples/sprite/changeimage.md
反転https://defold.com/llms/examples/sprite/flip.md
複数のスプライトサンプラーhttps://defold.com/llms/examples/sprite/samplers.md
スプライトカーソルhttps://defold.com/llms/examples/sprite/cursor.md
スプライトのサイズhttps://defold.com/llms/examples/sprite/size.md
スプライトの色調https://defold.com/llms/examples/sprite/tint.md

タイルマップ

例URL
タイルの取得と設定https://defold.com/llms/examples/tilemap/get_set_tile.md
タイルマップの衝突https://defold.com/llms/examples/tilemap/collisions.md

タイマー

例URL
タイマーのキャンセルhttps://defold.com/llms/examples/timer/cancel_timer.md
繰り返しタイマーhttps://defold.com/llms/examples/timer/repeating_timer.md
トリガータイマーhttps://defold.com/llms/examples/timer/trigger_timer.md

使用方法

Defold で何かを実装する実用的な例が必要な場合:

  1. トピックを特定します(例:「ファクトリーによるスポーン」、「物理レイキャスト」、「GUI ボタン」)
  2. 上記の表から該当する項目を探します
  3. 対応する URL を取得します(すべての URL はプレーンな Markdown です。取得して生のコンテンツを読み取ってください)
  4. 例:https://defold.com/llms/examples/factory/basic.md を取得します

コメント