> For the complete documentation index, see [llms.txt](https://docs.decentraland.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.decentraland.org/creator/content-creator-zh/chang-jing-sdk7/ru-men/dev-workflow.md).

# 开发工作流

使用 Creator Hub 创建 Decentraland 场景的推荐工作流，从构思到测试和发布。

本文概述了为 Decentraland 开发场景所推荐的步骤，从创意构想到发布以及后续。

## 我如何创建一个 Decentraland 场景？

1. **安装** [**创作者中心**](https://decentraland.org/download/creator-hub)，这是一款用于创建、预览和发布场景的官方桌面应用。它是推荐给各种技能水平创作者的工具。
2. **如果你使用 AI 编码助手** （例如 Claude Code、Cursor 或 Copilot），请安装官方 [Decentraland SDK 技能](/creator/content-creator-zh/chang-jing-sdk7/ru-men/vibe-coding.md) ，这样它就能识别经过验证的 SDK7 模式： `npx skills add decentraland/sdk-skills`
3. **该** [**CLI**](/creator/content-creator-zh/chang-jing-sdk7/ru-men/using-the-cli.md) 是高级用户和自动化工作流程的替代方案。

下方各节将对该工作流的每个阶段进行展开说明。

## 安装 Creator Hub

请确保你已安装 Decentraland Creator Hub。

* [安装指南](/creator/content-creator-zh/chang-jing-bian-ji-qi/kai-shi-shi-yong/editor-installation.md)

如果你打算使用代码进行开发，也请确保你安装了 [Visual Studio Code](https://code.visualstudio.com/) 或 [Cursor AI](https://www.cursor.com/).

{% hint style="info" %}
**💡 提示**：你还可以使用 AI 助手根据自然语言描述生成场景代码。参见 [使用 AI 进行 Vibe Coding](/creator/content-creator-zh/chang-jing-sdk7/ru-men/vibe-coding.md) 了解如何开始使用 AI 辅助开发。
{% endhint %}

## 设计你的体验

考虑你需要占用多大的空间、采用什么样的分布、希望玩家能够执行哪些机制等等。以下文档可作为指南：

* [UX 与 UI 指南](/creator/content-creator-zh/chang-jing-sdk7/she-ji-ti-yan/ux-ui-guide.md)
* [游戏设计约束](/creator/content-creator-zh/chang-jing-sdk7/she-ji-ti-yan/design-games.md)
* [场景 MVP 指南](/creator/content-creator-zh/chang-jing-sdk7/she-ji-ti-yan/mvp-guidelines.md)

## 发布到哪里

在 Decentraland 中，内容会发布到有限空间内相邻的土地地块上。玩家可以自由地从一个地块走到另一个地块。每个场景都是一个独立封闭的小世界，一个场景中的物品不能延伸到另一个场景中，而且每个场景的代码都与其他场景隔离运行。

发布到这些地块的权限由令牌控制。开发场景不需要土地，但一旦准备发布，你就需要能够访问土地。

或者，你也可以选择发布到 Decentraland [Worlds](/creator/content-creator-zh/chang-jing-sdk7/fa-bu/publishing-options.md#decentraland-worlds)，这是自包含且相互隔离的场景。

可用的选项如下：

* 租赁 LAND
* 购买 LAND
* 从土地所有者那里获取权限
* 发布到 Decentraland World，参见 [worlds](/creator/content-creator-zh/chang-jing-sdk7/fa-bu/publishing-options.md#decentraland-worlds) 了解更多。

参见 [发布选项](/creator/content-creator-zh/chang-jing-sdk7/fa-bu/publishing-options.md) 了解更多详情。

## 模板和示例

创建新场景时，可从几个基础模板场景中选择，这些模板包含一些基础代码和 3D 模型。利用它们可以更快开始。

* [示例场景](https://studios.decentraland.org/resources?sdk_version=SDK7)：在这里你可以找到大量示例场景，每个都展示了你可以借鉴的不同机制。你也可以克隆这些场景中的任意一个，并将其作为起点。
* [辅助库](https://studios.decentraland.org/resources?sdk_version=SDK7\&resource_type=Library)：这些可以简化许多常见任务。

## 美术资源

如果你是经验丰富的艺术家，或者你身边有这类人才，你可以为你的场景创建自定义 `.gltf` 或 `.glb` 模型。参见 [3D 模型基础](/creator/content-creator-zh/3d-jian-mo-he-dong-hua/3d-models.md) ，了解为 Decentraland 创建 3D 模型的技巧。

不过，你也不一定需要自己创建资源。参见 [实用资源](/creator/content-creator-zh/chang-jing-sdk7/ru-men/useful-resources.md) ，了解可用于获取 3D 模型的资源库和生成式 AI 工具，以及其他可以加快工作流程的工具。

## 运行本地预览

要运行场景预览，请在 Creator Hub 中打开它并点击 **预览** 按钮。或者，如果你使用命令行，请在 `npm run start` 中运行，位于项目根目录。

* [预览你的场景](/creator/content-creator-zh/chang-jing-sdk7/ru-men/preview-scene.md) 了解更多详情。
* 查看 [调试场景](/creator/content-creator-zh/chang-jing-sdk7/ru-men/preview-scene.md#debug-a-scene) 获取有关如何调试任何问题的技巧。
* 启用 **优化资源** 在预览设置中（或运行 `npm run start -- --local-ab` 来自 CLI）将你的 3D 模型作为优化后的资源包加载。预览运行会更流畅，并显示这些模型在发布后的真实效果。参见 [使用优化后的资源预览](/creator/content-creator-zh/chang-jing-sdk7/ru-men/preview-scene.md#preview-with-optimized-assets).

{% hint style="info" %}
**💡 提示**：在使用 Creator Hub 时，每当你对场景做出更改，预览都会自动更新。即使在运行中也是如此。
{% endhint %}

## 发布到 Decentraland

一旦你对场景满意，就该将它发布到 Decentraland 了。为此，你需要拥有 LAND、Decentraland NAME 或 ETH ENS 名称，或者获得拥有这些权限的人的授权。

参见 [发布](/creator/content-creator-zh/chang-jing-sdk7/fa-bu/publishing.md) 以了解操作说明。

或者，你也可以发布到 [Worlds](/creator/content-creator-zh/chang-jing-sdk7/fa-bu/publishing-options.md#decentraland-worlds)，这是一个不需要 LAND 的个人 3D 空间。

## 推广

现在你的场景已经上线了，赶快传播出去吧！以下是几种方式：

* 在社交媒体上分享（#DCL）
* 在上宣布 [Discord](https://dcl.gg/discord)
* 提交以便在上展示 [events.decentraland.org](https://events.decentraland.org/)
* 在你的场景中组织一场活动
* 在与场景链接的高流量区域添加一个出生点

## 迭代

当你的场景上线一段时间并收到了玩家反馈后，你就很适合对它进行迭代了！

通过改进和新功能更新你的内容，将场景的新版本部署到相同坐标。

## 回馈

如果你创建了一个令你自豪的场景、游戏或应用，不妨考虑将其开源！这样其他人就可以从你的代码中学习，并在你的工作基础上继续开发。你也可以在 [Awesome Repository](https://github.com/decentraland-scenes/Awesome-Repository).

如果你构建了一个可复用的功能模块，或许可以把它做成一个库，让其他人能将其导入到自己的项目中。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.decentraland.org/creator/content-creator-zh/chang-jing-sdk7/ru-men/dev-workflow.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
