mcpField
D
defold-examples-fetch

defold-examples-fetch

github.com/indiesoftbyDevelopment10450 installsUpdated 27w ago
Repository

About defold-examples-fetch

A reference skill for Defold developers that maps common implementation topics to example Markdown files. It organizes examples by category and provides URLs for fetching their source.

Key features

  1. 01Indexes examples by development topic
  2. 02Links to plain Markdown examples
  3. 03Covers animation, physics, GUI, and more

Use cases

  1. 01Find an example for a Defold feature
  2. 02Fetch implementation guidance for a game task

Install

Copy the command and run it in a terminal.

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

After installing, type/defold-examples-fetchin Claude Code to confirm it loaded.

Details

From the project README

Defold Examples Reference

Fetch example code from the links below (the URLs point to plain Markdown files).

Animation

ExampleURL
Animation State Machinehttps://defold.com/llms/examples/animation/animation_states.md
Cursor animationhttps://defold.com/llms/examples/animation/cursor.md
Easing functions (tweens)https://defold.com/llms/examples/animation/easing.md
Euler Rotationhttps://defold.com/llms/examples/animation/euler_rotation.md
Flipbook animationhttps://defold.com/llms/examples/animation/flipbook.md
Spine animationhttps://defold.com/llms/examples/animation/spine.md
Spinner animationhttps://defold.com/llms/examples/animation/spinner.md
Tween animationhttps://defold.com/llms/examples/animation/basic_tween.md
Tween animations chainhttps://defold.com/llms/examples/animation/chained_tween.md

Basics

ExampleURL
Message passinghttps://defold.com/llms/examples/basics/message_passing.md
Parent/childhttps://defold.com/llms/examples/basics/parent_child.md
Random numbershttps://defold.com/llms/examples/basics/random_numbers.md
Z-orderhttps://defold.com/llms/examples/basics/z_order.md

Collection

ExampleURL
Proxyhttps://defold.com/llms/examples/collection/proxy.md
Splashhttps://defold.com/llms/examples/collection/splash.md
Time-stephttps://defold.com/llms/examples/collection/timestep.md

Debug

ExampleURL
Physics debughttps://defold.com/llms/examples/debug/physics.md
Visual profilerhttps://defold.com/llms/examples/debug/profile.md

Factory

ExampleURL
Dynamic factorieshttps://defold.com/llms/examples/factory/dynamic.md
Shoot bulletshttps://defold.com/llms/examples/factory/bullets.md
Spawn enemies with central managementhttps://defold.com/llms/examples/factory/spawn_manager.md
Spawn enemies with script propertieshttps://defold.com/llms/examples/factory/spawn_properties.md
Spawn game objecthttps://defold.com/llms/examples/factory/basic.md

File

ExampleURL
Load JSON datahttps://defold.com/llms/examples/file/json_load.md
Save and Loadhttps://defold.com/llms/examples/file/sys_save_load.md

GUI

ExampleURL
Buttonhttps://defold.com/llms/examples/gui/button.md
Draghttps://defold.com/llms/examples/gui/drag.md
Get and set a gui font resourcehttps://defold.com/llms/examples/gui/get_set_font.md
Get and set a gui material resourcehttps://defold.com/llms/examples/gui/get_set_material.md
Get and set a gui texture resourcehttps://defold.com/llms/examples/gui/get_set_texture.md
GUI colorhttps://defold.com/llms/examples/gui/color.md
GUI progress indicatorshttps://defold.com/llms/examples/gui/progress.md
Health Barhttps://defold.com/llms/examples/gui/healthbar.md
Layoutshttps://defold.com/llms/examples/gui/layouts.md
Load texturehttps://defold.com/llms/examples/gui/load_texture.md
Pointer overhttps://defold.com/llms/examples/gui/pointer_over.md
Slice-9https://defold.com/llms/examples/gui/slice9.md
Stencilhttps://defold.com/llms/examples/gui/stencil.md

Input

ExampleURL
8 ways movementhttps://defold.com/llms/examples/input/move.md
Down durationhttps://defold.com/llms/examples/input/down_duration.md
Entity Pickinghttps://defold.com/llms/examples/input/entity_picking.md
Mouse and touch eventshttps://defold.com/llms/examples/input/mouse_and_touch.md
Text inputhttps://defold.com/llms/examples/input/text.md

Material

ExampleURL
Custom Spritehttps://defold.com/llms/examples/material/custom_sprite.md
Noise shaderhttps://defold.com/llms/examples/material/noise.md
Repeating Backgroundhttps://defold.com/llms/examples/material/repeating_background.md
Screenspacehttps://defold.com/llms/examples/material/screenspace.md
Sprite local UVhttps://defold.com/llms/examples/material/sprite_local_uv.md
Sprite Vertex Color Attributehttps://defold.com/llms/examples/material/vertexcolor.md
Unlithttps://defold.com/llms/examples/material/unlit.md
UV Gradienthttps://defold.com/llms/examples/material/uvgradient.md

Mesh

ExampleURL
Mesh (triangle)https://defold.com/llms/examples/mesh/triangle.md
Textured Meshhttps://defold.com/llms/examples/mesh/textured.md

Model

ExampleURL
AABBhttps://defold.com/llms/examples/model/aabb.md
Characterhttps://defold.com/llms/examples/model/character.md
Cubemap Reflectionhttps://defold.com/llms/examples/model/cubemap.md
GLTFhttps://defold.com/llms/examples/model/gltf.md
GPU Skinninghttps://defold.com/llms/examples/model/skinning.md
Model Vertex Colorhttps://defold.com/llms/examples/model/modelvertexcolor.md
Skyboxhttps://defold.com/llms/examples/model/skybox.md

Movement

ExampleURL
First-person 3D camera and movementhttps://defold.com/llms/examples/movement/3d_fps.md
Follow inputhttps://defold.com/llms/examples/movement/follow.md
Look athttps://defold.com/llms/examples/movement/look_at.md
Look rotationhttps://defold.com/llms/examples/movement/look_rotation.md
Move forwardhttps://defold.com/llms/examples/movement/move_forward.md
Move to targethttps://defold.com/llms/examples/movement/move_to.md
Movement speedhttps://defold.com/llms/examples/movement/movement_speed.md
Moving game objecthttps://defold.com/llms/examples/movement/simple_move.md

Particles

ExampleURL
Modifiershttps://defold.com/llms/examples/particles/modifiers.md
Particle effecthttps://defold.com/llms/examples/particles/particlefx.md
Particle Effect Emission Spacehttps://defold.com/llms/examples/particles/particlefx_emission_space.md
Confettihttps://defold.com/llms/examples/particles/confetti.md
Fire and smokehttps://defold.com/llms/examples/particles/fire_and_smoke.md
Fireworkshttps://defold.com/llms/examples/particles/fireworks.md

Physics

ExampleURL
Dynamic physicshttps://defold.com/llms/examples/physics/dynamic.md
Hinge joint physicshttps://defold.com/llms/examples/physics/hinge_joint.md
Kinematic physicshttps://defold.com/llms/examples/physics/kinematic.md
Knockbackhttps://defold.com/llms/examples/physics/knockback.md
Pendulum physicshttps://defold.com/llms/examples/physics/pendulum.md
Raycasthttps://defold.com/llms/examples/physics/raycast.md
Triggerhttps://defold.com/llms/examples/physics/trigger.md

Render

ExampleURL
Camerahttps://defold.com/llms/examples/render/camera.md
Orbit Camerahttps://defold.com/llms/examples/render/orbit_camera.md
Post-processinghttps://defold.com/llms/examples/render/post_processing.md
Screen to Worldhttps://defold.com/llms/examples/render/screen_to_world.md
World to Screenhttps://defold.com/llms/examples/render/world_to_screen.md

Resource

ExampleURL
Create atlashttps://defold.com/llms/examples/resource/create_atlas.md
Modify atlashttps://defold.com/llms/examples/resource/modify_atlas.md

Sound

ExampleURL
Fade In-Outhttps://defold.com/llms/examples/sound/fade_in_out.md
Get and set soundhttps://defold.com/llms/examples/sound/get_set_sound.md
Musichttps://defold.com/llms/examples/sound/music.md
Panninghttps://defold.com/llms/examples/sound/panning.md

Sprite

ExampleURL
Bunnymarkhttps://defold.com/llms/examples/sprite/bunnymark.md
Change sprite imagehttps://defold.com/llms/examples/sprite/changeimage.md
Fliphttps://defold.com/llms/examples/sprite/flip.md
Multiple Sprite Samplershttps://defold.com/llms/examples/sprite/samplers.md
Sprite cursorhttps://defold.com/llms/examples/sprite/cursor.md
Sprite sizehttps://defold.com/llms/examples/sprite/size.md
Sprite tinthttps://defold.com/llms/examples/sprite/tint.md

Tilemap

ExampleURL
Get and set tileshttps://defold.com/llms/examples/tilemap/get_set_tile.md
Tilemap collisionshttps://defold.com/llms/examples/tilemap/collisions.md

Timer

ExampleURL
Cancel timerhttps://defold.com/llms/examples/timer/cancel_timer.md
Repeating timerhttps://defold.com/llms/examples/timer/repeating_timer.md
Trigger timerhttps://defold.com/llms/examples/timer/trigger_timer.md

Usage

When you need a practical example of how to implement something in Defold:

  1. Identify the topic (e.g., "factory spawning", "physics raycasts", "GUI buttons")
  2. Find the matching entry in the tables above
  3. Fetch the corresponding URL (all URLs are plain Markdown — fetch and read the raw content)
  4. Example: fetch https://defold.com/llms/examples/factory/basic.md

Comments

Markdown supported