← 返回 Skills 市场
andyrenxu7255

Defold Game Engine

作者 Andy Ren · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
38
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install defold
功能描述
Develop games using Defold engine with Lua scripting, including components, GUI, physics, animation, input handling, dynamic objects, and save/load systems.
使用说明 (SKILL.md)

Defold Game Engine

Quick Start

Install Dependencies

https://github.com/Insality/druid/archive/refs/tags/1.2.2.zip
https://github.com/subsoap/defsave/archive/refs/tags/v1.2.6.zip
https://github.com/insality/defold-monarch/archive/1.0.zip

Project Structure

main.collection
├── game_manager.go
├── player.go
└── ui.go

Core Patterns

Message Passing

msg.post("target#script", "event", { data = value })

function on_message(self, message_id, message, sender)
    if message_id == hash("event") then handle(message) end
end

Dynamic Objects

local id = factory.create("#factory", pos, nil, { prop = value })
local ids = collectionfactory.create("#collection_factory")
msg.post("#proxy", "load")  -- Wait for proxy_loaded, then init+enable

GUI (Druid)

self.druid = druid.new(self)
self.btn = self.druid:new_button("node", callback)
self.text = self.druid:new_text("node", "text")

Physics

physics.apply_force("#collision", force)
physics.set_velocity("#collision", velocity)

function on_message(self, message_id, message, sender)
    if message_id == hash("collision_response") then
        handle_collision(message.other_id, message.normal)
    end
end

Animation

sprite.play_flipbook("#sprite", "idle", callback)
go.animate(".", "position.y", go.PLAYBACK_ONCE_FORWARD, 100, go.EASING_OUTQUAD, 1.0)

Input

msg.post(".", "acquire_input_focus")

function on_input(self, action_id, action)
    if action_id == hash("jump") and action.pressed then jump() end
end

Save/Load

defsave.load("game")
defsave.set("game", "coins", 100)
local coins = defsave.get("game", "coins")

References

Performance

  • Atlas all sprites
  • Message-driven logic, avoid polling
  • Reuse vectors/tables
  • Engine handles object pooling
安全使用建议
This skill looks safe as a Defold reference. Before using optional dependencies or running any included helper script, verify the GitHub libraries and inspect the script source yourself.
功能分析
Type: OpenClaw Skill Name: defold Version: 1.0.0 The Defold skill bundle is a comprehensive and legitimate resource for game development. It contains detailed documentation and code examples for various engine systems, along with a utility script (scripts/add_dependencies.py) designed to automate the addition of standard community libraries to a project's configuration file. All external references point to reputable GitHub repositories (e.g., Insality/druid, subsoap/defsave), and no indicators of malicious intent, data exfiltration, or prompt injection were found.
能力标签
cryptocan-make-purchases
能力评估
Purpose & Capability
The content is aligned with Defold/Lua game development: components, GUI, physics, animation, input, dynamic objects, and save/load examples.
Instruction Scope
Instructions are documentation and code examples for Defold projects; they do not tell the agent to override user intent, persist autonomously, exfiltrate data, or perform unrelated host actions.
Install Mechanism
There is no install spec, but the skill documents optional GitHub ZIP dependencies and the manifest lists a helper script whose contents were not included in the supplied file contents.
Credentials
File access, input handling, dynamic object creation, and save/load examples are Defold runtime concepts and are proportionate to the stated game-development purpose.
Persistence & Privilege
Persistence examples are for in-game save data using Defold APIs such as sys.save and DefSave, not agent memory, account credentials, or background execution.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install defold
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /defold 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release. Defold game engine skill covering core concepts, GUI, physics, animation, input, dynamic objects, data storage, and game patterns.
元数据
Slug defold
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Defold Game Engine 是什么?

Develop games using Defold engine with Lua scripting, including components, GUI, physics, animation, input handling, dynamic objects, and save/load systems. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 38 次。

如何安装 Defold Game Engine?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install defold」即可一键安装,无需额外配置。

Defold Game Engine 是免费的吗?

是的,Defold Game Engine 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Defold Game Engine 支持哪些平台?

Defold Game Engine 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Defold Game Engine?

由 Andy Ren(@andyrenxu7255)开发并维护,当前版本 v1.0.0。

💬 留言讨论